cancel
Showing results for 
Search instead for 
Did you mean: 

modifying SMTP Mail/Transport.php for multiple

modifying SMTP Mail/Transport.php for multiple

How can I use Mageplaza's free SMTP extension to send emails for these transactional emails as needed by Magento?  Mageplaza suggests editing Mail/Transport.php, but I don't know how to do that.   Please HELP!

 

I get lots of SMTP errors each time a registration or email is sent to customer.  Using gmail server, credentials are correct.  It worked fine before, not sure why it is showing this error now.

 

Thanks for your attention.

 

smtp_error_1.jpg

 

transactional_emails.jpg

6 REPLIES 6

Re: modifying SMTP Mail/Transport.php for multiple

Hello @Sheba 

Check below changes.

https://www.google.com/settings/security/lesssecureapps

You should change the "Access for less secure apps" to Enabled (if it is enabled,  change to disabled and than  enable again). 

 

https://github.com/jedireza/aqua/wiki/Issues-using-Gmail-SMTP

Was my answer helpful? You can accept it as a solution.
175+ Professional Extensions for M1 & M2
Need a developer?Just visit Contact Us Now

Re: modifying SMTP Mail/Transport.php for multiple

@Sheba the settings which @theMageComp has suggested, you have to do it for the email which you are using in SMTP configuration.

 

Also can you share the screenshot of the SMTP configuration because i have used it many times and it always works fine for me.

 

Thanks

Re: modifying SMTP Mail/Transport.php for multiple

Thanks for your response.

 

Less Access Apps setting in Google is set to OFF.  That's the only way we can get it to work, but it still gives errors.

Re: modifying SMTP Mail/Transport.php for multiple

@Sheba have you put it On and can you please share the screenshot of SMTP configuration?

 

Thanks

Re: modifying SMTP Mail/Transport.php for multiple

SMTP sends ALL email showing FROM:  one_email_address@domain.com

 

I need to know how to get magento to send emails from each of the email address specified in transactional email.

Re: modifying SMTP Mail/Transport.php for multiple

@Sheba Go to store->configuration->sales->sales email and check which email is used for sending the emails.

 

Thanks