On 06/25/2003 07:10 PM, Devin wrote:
I am trying to make it so that my PHP script generates it's own Message-ID's when sending mail through Sendmail. For some reason it is not working as I hoped. I have tried the mail() command by using:
mail("[EMAIL PROTECTED]","Subject","message","Message-ID: <[EMAIL PROTECTED]>");
That doesn't seem to work when I look at my e-mail client it seems to have it's own message-id for the e-mail i sent, can anyone help me on this?
I am actually using the Mail Pear Class but unable to get that to work either.
You can't forge the Message-ID when you use sendmail. You can only do it when you deliver it to the final SMTP server.
You may want to try this class that lets you compose and send messages. It comes with a subclass for delivering messages via SMTP. You can enable the direct delivery mode and set the Message-ID: header as you wish.
http://www.phpclasses.org/mimemessage
You also need this for the actual SMTP delivery:
http://www.phpclasses.org/smtpclass
--
Regards, Manuel Lemos
Free ready to use OOP components written in PHP http://www.phpclasses.org/
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php