Sunday, August 30, 2015

How to configure gmail smtp setting in prestashop administration page

It was a heck lot of headache looking how to configure gmail application in the prestashop and it never success in the first place. However search after searches and keeps trying at last it paid off. The problem with gmail is by default it won't allow users using it to send emails.

Anyway my settings is as follows:
Login to Prestashop administration page>>Advance parameters>>Email

Send email to = Customer service
Set my own SMTP parameters (for advanced users ONLY)
Both





SMTP server: smtp.googlemail.com
SMTP username: myemail@gmail.com
SMTP password: my email password
Encryption: SSL
Port: 465



Try to test sending email and an error such as below will be prompted.

Error: Please check your configuration
Authentication failed using username 'myemail@gmail.com' and password '**********'

At the same time i was receiving a notification from Gmail that "Sign-In Attempt Prevented" as below


Sign-in attempt prevented
Hi User,
Someone just tried to sign in to your Google Account myemail@gmail.com from an app that doesn't meet modern security standards.
Details:
Sunday, 30 August 2015 11:24 (Eastern Daylight Time)
United States*
We strongly recommend that you use a secure app, like Gmail, to access your account. All apps made by Google meet these security standards. Using a less secure app, on the other hand, could leave your account vulnerable. Learn more.

Google stopped this sign-in attempt, but you should review your recently used devices:

REVIEW YOUR DEVICES NOW
Best,
The Google Accounts team
*The location is approximate and determined by the IP address it was coming from.
This email can't receive replies. For more information, visit the Google Accounts Help Centre.

This is because prestashop is consider less secure application and Gmail have blocked it. Fortunately you can unblock this by allowing the less secure apps to work by accessing this google page "Allowing less secure apps" and click on the "Turn On" radio option.

.

Once it is turned on i have received a notification in gmail that "Access for less secure apps has been turned on" like below.


Access for less secure apps has been turned on
Hi User,
You recently changed your security settings so that your Google Account myemail@gmail.com is no longer protected by modern security standards.



Please be aware that it is now easier for an attacker to break into your account. You can make your account safer again by undoing this change here, then switching to apps made by Google such as Gmail to access your account.

Don't recognise this activity?
Review your recently used devices now.
Best,
The Google Accounts team
This email can't receive replies. For more information, visit the Google Accounts Help Centre.

Once you have received this notification go back to Prestashop administration page>>Advance parameters>>Email and retest the email send. This is then it's a success. Oh hell yeah it was a long headache but it's fine now.

3 comments:

  1. Hello
    Thanks for your post

    I followed your instructions and works and time, next time not works, Did you still work with gmail on your prestashop, How configure in Gmail the acces to prestashop

    ReplyDelete
    Replies
    1. Clear your cache and try again...the instruction i have given still work until today. It's the gmail blocking because it's secure you have to turn it off and try again.

      Delete
  2. Thanks you for this post, helped me a lot! ;)

    ReplyDelete