Re: Mail problem
| From: | Manuel Lemos | Date: | Mon, 21 Apr 2003 09:02:11 +0000 |
| Subject: | Re: Mail problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-144611@lists.php.net to get a copy of this message | ||
Hello,
On 04/20/2003 12:41 PM, Rosen wrote:
I have following problem: I start this: mail("user@127.0.0.1", "Some subject", "Body of E-mail", "Bcc:user1@127.0.0.1,user2@127.0.0.1\r\n"); and I receive of 'user@127.0.0.1' one E-mail, but on 'user1@127.0.0.1'and 'user2@127.0.0.1' I receive 2 times same E-mail. If I change 'Bcc' with 'Cc' all is normal - I receive 1 E-mail for each user. I'm using Win98. When I try same with Outlook Express - all is normal - I receive 1 E-mail for each user Can someone help me ?That looks like yet another bug of mail function under Windows. You may want to try this class that comes with wrapper function named smtp_mail() that emulates the mail() function but it takes care of talking with the SMTP server by itself: http://www.phpclasses.org/mimemessage You will also need this: http://www.phpclasses.org/smtpclass -- Regards, Manuel Lemos