Mail () to Cc: not sending

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ssand
Forum Commoner
Posts: 72
Joined: Sat Jun 22, 2002 9:25 pm
Location: Iowa

Mail () to Cc: not sending

Post by ssand »

Hi, I am having a bit of trouble sending mail with mail() but the problem appears to be only with the secondary (cc:) address.

I receive email main addressee but the Cc: doesn't receive anything.

I am using the following for extra headers and for the Cc and From info

Code: Select all

$headersx  = 'MIME-Version: 1.0' . "\r\n";
 $headersx .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
 $headersx .= 'From: ' . $useremail . "\r\n";
 $headersx .= 'Cc: myemail@mydomain.com' . "\r\n";
When I receive mail to the main To: address it lists the Cc: email and the From: email, but the Cc: address doesn't receive the email. It gives the appearance that it's working. :?:

Thanks
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post by anjanesh »

Why is \r being printed as \are ?
Last edited by anjanesh on Fri Feb 25, 2005 11:03 am, edited 1 time in total.
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

anjanesh wrote:Why is \ <span style='color:blue' title='ignorance is bliss'>are</span> being printed as \are ?
viewtopic.php?t=29998
Post Reply