Amazon SES / MAIL FROM Error Fix

Amazon SES / MAIL FROM Error Fix
Hi All,

Here's a quick fix for some email providers using SMTP.

Issue:
PHP Fatal error: Uncaught Exception: Error: MAIL FROM not accepted from server!

Cause:
Some email providers (Amazon SES SMTP for one), provide different usernames/access credentials for authenticating. For example an Amazon SES SMTP username could be: ses-smtp-user.201154875-134410

When Opencarts smtp library connects, it provide the SMTP username as the FROM value. This is rejected as the FROM value should be the email address you are sending from.

Solution:
To change FROM field from using the SMTP Username to the store config email.




Download
  • Developed by OpenCart Community
  • Documentation Included

Rating

Compatibility
3.0.3.7

Last Update
5 Apr 2021

Created
5 Apr 2021
162 Downloads
0 Comments
Davx
Davx
Member since: 22 Mar 2012

View all extensions Get Support