Re: imap mail() problems

From: Date: Fri, 04 Apr 2003 21:58:36 +0000
Subject: Re: imap mail() problems
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-142440@lists.php.net to get a copy of this message
Thanks for the suggestions, I have tried them all but with no joy. Still exactly the same problem. Pretty sure its not my SMTP server as using Outlook it works fines. Any other ideas as would prefer not to have to use the mail() function multiple times. Alec ----- Original Message ----- From: "Mario Soto" <mario_s@amigo.net.gt> To: "Alec Wallis" <axw00u@Cs.Nott.AC.UK>; <php-general@lists.php.net> Sent: Friday, April 04, 2003 6:04 PM Subject: Re: [PHP] imap mail() problems Try first to take off the \r char on the string. It worked very good for me using only the \n to send more headers. Other is to put the address into angle bracets (<user@host.domain>) and in this way you can use a name on the server (read some rfc's, it will be helpful if you're using email often in php programs; begin reading the 822). Other is try to send one message at the time. Remember that you can une more than once the mail() function on the program. Other, chech if your SMTP server allow to send CC and BCC messages. Some ones for security reasons don't let you to do that. Other add the CC address to $strSubject separated with a semi colon and still use the CC extra header. Greetings, and my best wishes. Mario Soto mario_s@amigo.net.gt -.-.-.- ----- Original Message ----- From: Alec Wallis To: php-general@lists.php.net Sent: Thursday, April 03, 2003 11:54 AM Subject: [PHP] imap mail() problems Hi I am experiencing problems with the mail functions, in that I can not send emails to multiple addresses in the to field, or send Cc's. The multiple addresses show up in the email when it arrives to the first email address, but the other copies never arrive. The code I use is: mail($strTo, $strSubject, $strBody, $header); with the optional header fields being: $header = "Cc: axw00u@cs.nott.ac.uk\r\n"; Any ideas welcome Cheers Alec

« previous php.general (#142440) next »