keiusui has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl print "Content-type:text/html\n\n"; $mailprog = '/usr/sbin/sendmail'; open(MAIL,"|$mailprog -t") or die "cannot open sendmail"; print MAIL "To: my\@email.address\n"; print MAIL "From: senders\@email.address\n"; print MAIL "Subject: this is the subject line\n\n"; print MAIL "these are the contents of the e-mail\n"; close(MAIL); print "Success!"; exit 1;
I have double-checked for typos in my e-mail address, and I am certain that the path to sendmail is correct.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: sendmail script
by GrandFather (Saint) on Feb 20, 2006 at 23:17 UTC | |
by ikegami (Patriarch) on Feb 20, 2006 at 23:41 UTC | |
|
Re: sendmail script
by stonecolddevin (Parson) on Feb 20, 2006 at 23:19 UTC | |
|
Re: sendmail script
by spiritway (Vicar) on Feb 21, 2006 at 02:41 UTC | |
by keiusui (Monk) on Feb 21, 2006 at 03:01 UTC | |
by spiritway (Vicar) on Feb 21, 2006 at 03:41 UTC |