I have a simple Perl script to send email using Sendmail program. When I execute this script from my house (Comcast internet connection) is does not work.
The script does not give any error, and i do not have any mail in the 'mail' of my account. But, I still do not see any email in my inbox. I have checked my 'junk' email folder as well and I do not see email from this script.
The same script works if I am at other location, other than my house.
Do I need to do any additional setup? I am running this on MacBook/OSX 10.9
Thanks.
--Here is my script $to = 'soni.nimesh@gmail.com'; $from = 'soni_nimesh@hotmail.com'; $subject = 'Test Email'; $message = 'This is test email sent by Perl Script'; open(MAIL, "|/usr/sbin/sendmail -t"); # Email Header print MAIL "To: $to\n"; print MAIL "From: $from\n"; print MAIL "Subject: $subject\n\n"; # Email Body print MAIL $message; close(MAIL); print "Email Sent Successfully\n";
In reply to Sendmail issue by arete
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |