Follow these simple steps:
- Login to admin panel,
- Click on “ Preferences” and then on “Email” tab,
- Select “Set my own SMTP parameters”. “For advanced users ONLY” radio button,
- SMTP server: your SMPT server, if using Gmail insert – “smtp.gmail.com”,
- SMTP user: your email address, e.g. my_prestashop_email@gmail.com,
- SMTP password: email password,
- Encryption: Gmail uses “TLS”,
- Port: Gmail uses “465”,
- Click on button “save”,
- If you wish to test – add email on “Test your e-mail configuration” and click “send an e-mail test” button.
In our experience, the most common problem is the SSL / TLS extension. If you have some web development skills – the problem will not be difficult to resolve.
First of all, we need to identify problem. By default Prestashop does not show email errors, so we need to set it manually.
Open file: Prestashop root folder/js/sendMailTest.js. Before “if (ret == “ok”)” add “console.log(ret);”.
Save file and refresh Back Office >> Preferences >> Email page.
Open browser firebug (Chrome: from right menu select “Inspect elements”) and click “Send a e-mail test”. You should now get an error message.
If problems like in example – you need to enable SSL/TLS extension for your Apache/PHP installation.
First of all make sure you have libeay32.dll and ssleay32.dll files in your /apache/bin folder. Edit your php.ini file and add: extension=php_openssl.dll.
Then restart Apache server and your SSL should be loaded.
You still receive an error like this:
SMTP -> ERROR: Password not accepted from server: 000-5.7.14 Please log in via your web browser and 000-5.7.14 then try again.
SMTP -> ERROR: MAIL not accepted from server: 000-5.5.1 Authentication Required.
The following From address failed: XXX@gmail.com : MAIL not accepted from server,000,5.5.1 Authentication Required.
SMTP server error: 5.5.1 Authentication Required.
In that case please check Gmail account security settings:
https://www.google.com/settings/security/lesssecureapps (Access for less secure apps – Turn on)
https://accounts.google.com/DisplayUnlockCaptcha (Allow access to your Google account – Continue)
Not works for me.
Try using TLS/STARTTLS port: 587.
More info in google page:
http://mail.google.com/support/bin/answer.py?answer=13287
tnks 🙂 works
I have tried all of the solutions and it doesnt work on my 1.3.1 version of Prestashop 🙁
Hi~
I soved with your solution..
Thanks.
my ps v1.2
Every e-mail is working…
But, only order-confirmaion mail is not sended…how can correct?
Hi there, i have used both 465 and 587 in PrestaShop installer, they are not working. Could you help me with this..
Please copy error message. Then it will be easier to identify mail system problem.
I got this error message
Error: please check your configuration
The SMTP connection failed to start [tls://smtp.gmail.com:587]: fsockopen returned Error Number 0 and Error String
any solutions?
Thanks,
Hi,
I think you are confused parameters.
Please check this:
http://www.devnetwork.net/viewtopic.php?f=52&t=86794
When tried used gmail account (with : ssl and port: 465), I got this error message:
Error: please check your configuration
Authentication failed using username ‘***@gmail.com’ and password ‘********’
I have tested that account on the other hosting server and it was work.
Is it perhaps problem on hosting server configuration?
Thanks you,
try use other gmail account. I had trouble when I used new gmail account, with an old account was okay.
thanks for u’r reply.
I have tested other account, but still got same error.
btw, have you enable POP3 and IMAP on your new gmail account setting?
Kadek Jaka>POP using only for Incoming emails.
Try create email script with “PHP mailer” and print smtp errors.
Then you should turn more.
http://phpmailer.worxware.com/index.php?pg=phpmailer
Helo..
I have tried to use phpmailer with debug mode and I got this message:
SMTP -> FROM SERVER:220-server42518x.masterweb.net ESMTP Exim 4.77 #2 Mon, 27 Aug 2012 00:38:15 +0000 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail.
SMTP -> FROM SERVER: 250-server42518x.masterweb.net Hello cangak.n.masterweb.com [49.50.8.73] 250-SIZE 52428800 250-PIPELINING 250-AUTH PLAIN LOGIN 250 HELP
SMTP -> ERROR: Password not accepted from server: 535 Incorrect authentication data
SMTP -> FROM SERVER:250 Reset OK
SMTP Error: Could not authenticate. Mailer Error: SMTP Error: Could not authenticate.
does that mean there was problem with hosting server configuration?
And when I tried on the other server with same php script, I got this success message :
SMTP -> FROM SERVER:220 mx.google.com ESMTP ud8sm18814025igb.4
SMTP -> FROM SERVER: 250-mx.google.com at your service, [119.82.227.91] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH 250-ENHANCEDSTATUSCODES 250 PIPELINING
SMTP -> FROM SERVER:250 2.1.0 OK ud8sm18814025igb.4
SMTP -> FROM SERVER:250 2.1.5 OK ud8sm18814025igb.4
SMTP -> FROM SERVER:354 Go ahead ud8sm18814025igb.4
SMTP -> FROM SERVER:250 2.0.0 OK 1346040466 ud8sm18814025igb.4
Message sent!
so what is the problem? how I can explain it to the hosting provider?
Thanks you,
Hi, still a usefull post in 2013 :). I’m using PS 1.5.4.1. Tried configuring it with Gmail, works great.
Thank you.
Hi Janis,
Could you please let me know how did you configure Gmail smtp to work with Prestashop 1.5.4 I’m having issues … 🙁
This does not work for debugging in 1.5.6.2 🙁
Hi,
Please copy what error you are getting
Adding console.log(ret); doesn’t seem to work with Prestashop 1.5.4.1. I can’t see errors like the screenshot.
Do you have an idea of what I can do ?
My smtp parameters was working well until yesterday and now the test button tell me that authentication failed. I haven’t change anything and the password is correct and well saved in database.
Hi,
first of all please try disable javascript cache in browser. What you see when you try to print an error?
Hi there,
I tried all this stuff above, but unfortunately it didn’t work for me. I tried it with different gmail accounts. Also, I tried different encryptions and different ports. Every time this error appears:
Error: Please check your configuration
Authentication failed using username ‘address@gmail.com’ and password ‘***********’
Any suggestions?
Thanks
Hello,
I’m having the same problem as @Net (last guy who posted). I’ve tried all the previous suggestions, but it still doesn’t work 🙁
Hi,
please read this Google support page:
https://support.google.com/mail/answer/78775?hl=en
Special: Did you set ‘allow authentication’ for the SMTP server?
thank you so much…
it work well on me, i’m with version 1.6.0.11. a little diffirent in email back office menu but it have same way in confugiration
thanks a lot
I have seen the first tutorial on internet that is helping in configuration of SMTP Server. Thanks http://www.blmodules.com/ team. Please let me know that is this trick works for PS 1.6.0.14 or I have to use some module like, that is paid solution. Are you working to update this guide for 1.6.0.14???
Regards
Hi,
this trick works and with Prestashop 1.6.0.14.
Hi root folder/js does not contains sendMailTest.js. file 🙁
i am using cpanel file manager , pls help me.
Hi,
New versions of Prestashop send test email from “AdminEmailsController.php” (/controllers/admin/AdminEmailsController.php), method: ajaxProcessSendMailTest()
It’s not working for me 🙁 Got following Error Message: Help me please…
Error: Please check your configuration
Expected response code(s) [250] but got response [530-5.5.1 Authentication Required. Learn more at 530 5.5.1 https://support.google.com/mail/answer/14257 r8sm12058775wiz.2 – gsmtp]
Hi,
it looks like you have a problem with your Google account, no’t with SMTP settings. Please check your account settings or other account.
Hi friends i found a very simple solution to this problem .
in your google account search for setting which ” allow less secure apps ”
It seems like prestashop falls in that catogory , just allow the less secure apps & Voila !! Problem Solved ! 😀
Hi
l take it this err
Error: Please check your configuration
Connection could not be established with host smtp.gmail.com [Connection timed out #110]
Can you tell me what can l do it.?
Hi,
please check again port and encryption type.
Thanks, works like a charm