#!/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.
In reply to sendmail script by keiusui
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |