in reply to Re: sendmail with perl
in thread sendmail with perl
$mailProg = "/usr/sbin/sendmail -t"; open (MAIL, "|$mailProg"); print MAIL "Date: $mailheader_date -0500\n"; print MAIL "To: $recipient\n"; print MAIL "From: $adminEmail\n"; print MAIL "Subject: Borrow Request\n"; print MAIL "***********************************\n"; (more print statements with the body of the msg in here) close (MAIL);
So yes, it could be that I'm doing it the wrong way .... although this has worked for a long time on a lot of different servers. :)
What call to the sendmail program would work then, if it should have something else for the envelope besides what's in the body?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: sendmail with perl
by jettero (Monsignor) on May 24, 2007 at 02:26 UTC | |
by mwhiting (Beadle) on May 24, 2007 at 12:35 UTC | |
by jettero (Monsignor) on May 24, 2007 at 15:04 UTC | |
|
Re^3: sendmail with perl
by Anonymous Monk on May 24, 2007 at 11:31 UTC |