Re: Generating Message-ID when sending messages
| From: | Manuel Lemos | Date: | Wed, 25 Jun 2003 22:28:45 +0000 |
| Subject: | Re: Generating Message-ID when sending messages | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-152890@lists.php.net to get a copy of this message | ||
Hello,
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("dreamboy@aros.net","Subject","message","Message-ID: <200306250355.WiApIFlA@aros.net>"); 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/