PHP mail problem, to many identity's

In my webshop i use a script that send 3 confirm mails, one to the customer, one to the store and one to me.
But the mailserver from my provider now give an error: to many ‘from’ identity’s.
So i don’t receive the confirm mails anymore.

This is the mail script:

[php]

switch($svEmailStatus)
{
case “top”:
// If set to 0 the email will be displayed on the screen otherwise it will be send
$cfgMailSend = 1;

// email of the customer
// --------------------------------------------
$svANEmail = "[email protected], [email protected]";

// subject of the email
// ---------------------------------------------
$svMailSubject = “Your order”;

// head of the email
// -----------------------------------
$svMailhead = "

Hello,

Info about the order.";

// summary row
// --------------------------
$svMailArtikelSum = "

Total $nSum
";

// end
// -----------
$svMailEnd = “Thanks for your order”;
}

[/php]

The PHP script that send the mail:

[php]

      if ($cfgMailSend) // 
     $bEmailSend = mail("$svEmail,$svANEmail", $svMailSubject, $svMailText, "From: $svANEmail");
  else
     echo "From: $svANEmail<br>To: $svEmail,$svANEmail<br>Subject: $svMailSubject<br>" . nl2br($svMailText);

[/php]

$svEmail = the customer
$svANEmail = contains the mail from the store and me.

How can i solve this problem?

Thanks in advance!

Your provider probably implemented some sort of spam protection… but why would you want the email to come from multiple addresses? There should only be one from with possible multiple tos.

Maybe I’m misunderstanding (?)

You’re right, it’s spam protection. Problem solved.

Sponsor our Newsletter | Privacy Policy | Terms of Service