Re: imap mail() problems
| From: | Mario Soto | Date: | Fri, 04 Apr 2003 17:04:21 +0000 |
| Subject: | Re: imap mail() problems | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-142387@lists.php.net to get a copy of this message | ||
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