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!