2

I'm trying to send an email by extension Mageplaza Smtp and when I config, and send mail, at first, when i enter Username and Password and click "Test now" in "Send test email" section, it sends email successfully as expected.

But then, I click "save config", and then the page reloaded. After that, i click "Test now" and the page show an error message says "Username and Password not accepted".

May i do something wrong?

Here are my config, please take a look: enter image description here enter image description here enter image description here

Also here is default Magento config, I've change Enable to "No". enter image description here

Thanks

5
  • I hope you are trying to send emails after clearing cache. Also would suggest to ensure if you are trying right username and password by logging in into the account being used. Alternatively you can try github.com/magepal/magento2-gmail-smtp-app if there is some issue with current extension. Commented Dec 1, 2018 at 15:31
  • Hi @HimmatPaliwal, the first thing i've thing of when meet this issue is clearing cache. So of course i did it but it's no use, and second, my email account is working fine in gmail :)
    – fudu
    Commented Dec 1, 2018 at 16:11
  • I'll try your link later :3 thanks for helping me.
    – fudu
    Commented Dec 1, 2018 at 16:12
  • Hi, i've try magepal smtp, which is the extension in the link you gave me yesterday, and it have the same error, maybe i was config something wrong ? Everything i config i've take a picture in the post, please take a look thanks :(
    – fudu
    Commented Dec 3, 2018 at 1:39
  • Error after adding app password I’m getting: 5.7.9 Please log in with your web browser and then try again. For more 5.7.9 information, go to 5.7.9 support.google.com/mail/?p=WebLoginRequired 6a1803df08f44-6b79c5138bbsm5029676d6.61 - gsmtp
    – Maciek Rek
    Commented Jul 18 at 7:20

5 Answers 5

1

Try attached configuration with Magepal extension and let me know if it works:

enter image description here

1

Authentication: set to Login

Username: set to the username name of the Gmail account that you want to be in charge of sending all the emails within your store

Password: enter your app’s password

You’ll want to create an app password here and use the generated app password for your SMTP configuration.

Read more here -> Configure SMTP Settings for Sending Emails in Magento

enter image description here

0

I have faced the same error with Mageplaza extension and the solution is:

Either turn on less secure apps https://myaccount.google.com/u/1/lesssecureapps?pageId=none

OR use an application password instead of your Gmail account password https://support.google.com/mail/answer/185833?hl=en

and don't forget to flush the Magento cache after updating the password or username.

1
  • To help keep your account secure, from May 30, 2022, ​​Google no longer supports the use of third-party apps or devices which ask you to sign in to your Google Account using only your username and password. Commented Nov 23, 2022 at 9:16
0

Instead of using a Gmail account password, we need to use an APP password.

To App password use the below steps.

  • Click on right side account photo
  • Click on manage your Google account
  • Click on Security
  • Click on the 2-step verification
  • Go to App passwords
  • Create an App password and use it.

Thank You.

-1

this configurations works!

Important change the host to smtp.googlemail.com (thanks Swift Mailer)

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.