internal server mail routing can be complicated. Sometimes a misconfiguration will cause mail "from" the server going "to" the same server to be seen as undesired.
Usually the best way around this is to use the 'sendmail -f' option.
There's a bug in 1.3.0.x that prevents sendmail -f from actually running. See below.
Another method for working around the internal routing problem is to enable the "Emails must send from known domain" option. This will cause the "sent from" email address to be set to match your "Email From" address set in Email Options.
To work around the sendmail -f bug so that you can try to use that option, do this:
/includes/functions/functions_email.php
around line 157:```
// if mailserver requires that all outgoing mail must go "from" an email address matching domain on server, set it to store address
if (EMAIL_SEND_MUST_BE_STORE=='Yes') $mail->From = EMAIL_FROM;
change to:```
// if mailserver requires that all outgoing mail must go "from" an email address matching domain on server, set it to store address
if (EMAIL_SEND_MUST_BE_STORE=='Yes') $mail->From = EMAIL_FROM;
if (EMAIL_TRANSPORT=='sendmail-f' || EMAIL_SEND_MUST_BE_STORE=='Yes') {
$mail->Sender = EMAIL_FROM;
}
This is fixed in the next release.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.