L
lokisapocalypse
I am working on script that sends information from a form to an email
account. It worked fine on my campus account but when posting it to
the internet and adding the new site to the recipients folder, it does
not send me the email anymore. A friend suggested that I add || die
"Cannot send mail. $!"; after the open(MAIL, "|$mailprog") command to
get open(MAIL, "|$mailprog")|| die "Cannot send mail. $!"; which will
kill the script if it cannot open the mail command. After doing this,
I now get an error message saying script produced no output. Any ideas
as to how this can be resolved?
account. It worked fine on my campus account but when posting it to
the internet and adding the new site to the recipients folder, it does
not send me the email anymore. A friend suggested that I add || die
"Cannot send mail. $!"; after the open(MAIL, "|$mailprog") command to
get open(MAIL, "|$mailprog")|| die "Cannot send mail. $!"; which will
kill the script if it cannot open the mail command. After doing this,
I now get an error message saying script produced no output. Any ideas
as to how this can be resolved?