Michael C. Toren on Mon, 1 May 2000 20:24:07 -0400 (EDT) |
> I've tried the command: > > exec("/usr/sbin/sendmail < $message_with_headers"); > > and many others but to no effect. I've tried a bunch of different formats for > the mail file too. > > e.g. > MAIL FROM: user@email.com > RCPT TO: otheruser@otheremail.com > DATA > Subject: Subject header > Message Try piping your message to "sendmail -oi -t", and getting rid of the SMTP commands from the above. Your message should, however, contain valid From: and To: headers. Also, you need to separate the header and body sections of your message with a blank line. HTH, -mct
|
|