PHP Mail Help - Multiple CC's from Same Domain

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
BritishAgent
Forum Newbie
Posts: 7
Joined: Thu Jan 31, 2008 4:09 pm

PHP Mail Help - Multiple CC's from Same Domain

Post by BritishAgent »

Hello

I am having trouble with my php mail form. I have multiple recipients in the CC field but only one from each domain receives the message - eg:

Code: Select all

$headers = "CC: claire@mail.com, miranda@company.com, steve@company.com\r\n";
In this example, both Claire and Miranda get the cc message but not Steve. The email that I receive a CC copy of shows that Steve was added to the CC list but it never went to his mailbox.

Is there something I have to do to to make it allow multiple cc's from the same domain?

Thanks for any help.

Claire
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: PHP Mail Help - Multiple CC's from Same Domain

Post by califdon »

BritishAgent wrote:Hello

I am having trouble with my php mail form. I have multiple recipients in the CC field but only one from each domain receives the message - eg:

Code: Select all

$headers = "CC: claire@mail.com, miranda@company.com, steve@company.com\r\n";
In this example, both Claire and Miranda get the cc message but not Steve. The email that I receive a CC copy of shows that Steve was added to the CC list but it never went to his mailbox.

Is there something I have to do to to make it allow multiple cc's from the same domain?

Thanks for any help.

Claire
No, there's no limit. Something else is wrong. Is it only the last address in the list that doesn't work? I'd try putting a space before the "\r\n" following the last address (although I wouldn't have thought that should cause a problem). If that's not it, check the spelling, check that "steve" is getting other email.
BritishAgent
Forum Newbie
Posts: 7
Joined: Thu Jan 31, 2008 4:09 pm

Re: PHP Mail Help - Multiple CC's from Same Domain

Post by BritishAgent »

califdon wrote:
BritishAgent wrote:Hello

I am having trouble with my php mail form. I have multiple recipients in the CC field but only one from each domain receives the message - eg:

Code: Select all

$headers = "CC: claire@mail.com, miranda@company.com, steve@company.com\r\n";
In this example, both Claire and Miranda get the cc message but not Steve. The email that I receive a CC copy of shows that Steve was added to the CC list but it never went to his mailbox.

Is there something I have to do to to make it allow multiple cc's from the same domain?

Thanks for any help.

Claire
No, there's no limit. Something else is wrong. Is it only the last address in the list that doesn't work? I'd try putting a space before the "\r\n" following the last address (although I wouldn't have thought that should cause a problem). If that's not it, check the spelling, check that "steve" is getting other email.
Thanks Califdon, but I've checked the spelling and that they are getting other mail. Checked their spam folders. I've also checked it by varying the addresses that are from the same domain, with the same results.

I read about this being an issue when I was researching how to do multiple recipients, but can't find that post. Any other ideas?

C.
Post Reply