I'm seeking your expertise for a long-standing issue regarding order notification emails, which I've experienced across several versions of Phoenix Cart (I recently upgraded to v1.1.0.6).
My Setup:
- Phoenix Cart Version: 1.1.0.6
- Host: Infomaniak (Switzerland)
- Email Configuration: SMTP. In an attempt to resolve this, I installed the SMTP-Auth v1 addon, but the behavior remains the same. The credentials are valid.
- Payment Modules: The issue occurs with offline payment modules like moneyorder.php (and custom versions based on it).
- DNS Configuration: SPF and DKIM records are correctly set up for my domain and have been validated by external tools.
The issue only occurs when sending the order notification to the administrator, depending on the email address set in "Configuration > My Store".
Here is a summary of my tests:
- Test 1: Notification to an external address (Yahoo)
- Result: SUCCESS. After an order is placed, the notification email is sent and received perfectly.
- Conclusion: The shop can authenticate with the SMTP server and send emails. The notification trigger itself is working.
I should clarify that I do not wish to use this as a permanent solution, as my Terms of Service state that my business email is shop@mydomain.fr, and it is also more professional to use it.
- Test 2: Notification to an internal address (on the same domain)
- Result: FAILURE. After an order is placed, no email is received at this address.
- Conclusion: The problem occurs specifically when Phoenix Cart attempts to send an email to an address on the same domain as the sender.
- Test 3: Host's Server Test (to rule out a server issue)
- Result: SUCCESS. The email was sent and received perfectly.
- Conclusion: My host's server allows this type of "send-to-self" routing.
Important additional context: Email communication works correctly in other parts of the shop. Customers can send me emails to shop@mydomain.fr from their account area, and I can send them emails from the admin panel (which is configured with shop@mydomain.fr as the sender). Therefore, the issue is truly isolated to the automatic order notifications.
Problem Summary:
The issue, which has persisted through Phoenix Cart updates, seems to be in how the shop builds the email when the destination is on the same domain as the sender. The email generated by Phoenix Cart is likely considered "suspicious" by the sending server and blocked, whereas an email from a robust client like Thunderbird (with more complete headers) is accepted.
Have you ever encountered this scenario? Is there a specific configuration or a known code modification to force the creation of more robust email headers, so that the SMTP server will accept these internal emails?
Thank you in advance for your help.