Re: problem with mail - again
| From: | Manuel Lemos | Date: | Thu, 23 May 2002 23:24:18 +0000 |
| Subject: | Re: problem with mail - again | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-13959@lists.php.net to get a copy of this message | ||
Hello,
On 05/23/2002 07:41 PM, Afan Pasalic wrote:
Hi people, I started with sending a newsletter using this code and it works fine. $headers .= "From: Name - newsletter <newsletter@server.com>\n"; $headers .= "X-Sender: <newsletter@server.com>\n"; $headers .= "X-Mailer: PHP\n"; //mailer $headers .= "X-Priority: 3\n"; //1 UrgentMessage, 3 Normal $headers .= "Return-Path: <newsletter@server.com>\n"; $headers .= "Reply-To: newsletter@server.com\n"; $headers .= "Content-Type: text/html; charset=iso-8859-1\n"; for($i=0; $i<count($EmailListing); $i++) { mail($EmailListing[$i], $subject, $mailmessage[$i], $headers); } Problem is that emails with wrong email addresses or not existing email addresses are not coming back to me. What could be a mistake?On Windows bounced messages will go to sendmail_from setting in php.ini . If you can't set that address to something as you want, you need to use some other method besides mail() to send messages. -- Regards, Manuel Lemos