|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|
Re: [PLUG] /usr/bin/sendmail program w/PHP
|
> 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
|
|