Are you carrying your laptop to this other location, or are you executing the script from a different computer? If the former, then the first thing to investigate would be blocked outgoing SMTP, as the other monks have suggested.
Your open would be better with error handling: open(MAIL, "|/usr/sbin/sendmail -t") or die "Failed to open sendmail: $!"; and the same for your close: close MAIL or die $! ? "Error closing sendmail: $!" : "Exit status $? from sendmail";
In reply to Re: Sendmail issue
by Anonymous Monk
in thread Sendmail issue
by arete
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |