if (open (SENDMAIL, "| $sendmailpath -t")) { print SENDMAIL "Subject: $subject\n"; print SENDMAIL "From: $from\n"; print SENDMAIL "To: $to\n"; print SENDMAIL "\n" ### Need a blank line between headers and +body! print SENDMAIL "This is a test e-mail.\n\n"; close (SENDMAIL);
In addition - use strict, even though it's not the issue here.
Michael
In reply to Re: seeking sendmail enlightenment
by mpeppler
in thread seeking sendmail enlightenment
by wayan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |