arete has asked for the wisdom of the Perl Monks concerning the following question:
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";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sendmail issue
by neilwatson (Priest) on Aug 08, 2014 at 12:18 UTC | |
|
Re: Sendmail issue
by hippo (Archbishop) on Aug 08, 2014 at 12:31 UTC | |
|
Re: Sendmail issue
by Anonymous Monk on Aug 08, 2014 at 12:41 UTC | |
by arete (Initiate) on Aug 08, 2014 at 13:00 UTC | |
by mr_mischief (Monsignor) on Aug 08, 2014 at 13:43 UTC | |
by arete (Initiate) on Aug 08, 2014 at 14:10 UTC | |
|
Re: Sendmail issue
by Anonymous Monk on Aug 08, 2014 at 12:21 UTC | |
|
Re: Sendmail issue
by bulrush (Scribe) on Aug 09, 2014 at 11:32 UTC | |
|
Re: Sendmail issue
by sances (Initiate) on Aug 12, 2014 at 12:51 UTC |