Prestashop smtp settings is easy

Prestashop email setting is very important. If you are using Prestashop Discounts Rules Module, you need to send a voucher on email to your customer! Many modules also need to use an email system.

A simple way to setup your Prestashop SMTP settings.

You can choose between two ways to send emails : the PHP mail function or an SMTP mail server.

Prestashop email setting

How to setup your Prestashop SMTP parameters

Introduction

Instead of having to manage your own outgoing mail server on your server / hosting, you can simply configure Gmail SMTP settings into whatever script or program you wish to send email from. All you need is either a free Gmail account or paid Google Apps account without any Prestashop addons.

Benefits

You have the option of having Google store and index the emails you send via its SMTP server, so all your sent emails will be searchable and backed-up on Google servers. If you elect to use your Gmail or Google Apps account for your incoming email as well, you'll have all your email in one convenient place.

Prestashop Discounts Rules - Send voucher after order by email

Email system is a vital Prestashop core. Prestashop Discounts Rules module uses this system to send the voucher after order to your customers, apply a discount based on customer groups, catagories, suppliers, volume or price.

Settings

Log in to the back office, then click on the ADVANCED PARAMETERS tab and from the submenus that appear underneath click on E-mail. You'll see the two email options: Use PHP mail() function and Set my own SMTP parameters. Mark the button for the SMTP parameters option and the settings that you have to configure will appear underneath :

  • Login to admin panel
  • Click on ADVANCED PARAMETERS and then on “Email” tab
  • Select “Set my own SMTP parameters”. “For advanced users ONLY” radio button.

Setup Prestashop SMTP Setting Step 1

 

Let's say, for example, that you want to use your Google account to send mail. Now let's look at the SMTP parameters that you have to configure:

    • Mail domain name - you don't really need to type anything in the field for this option. Keep this field empty if you don't know.
    • SMTP server - Your SMTP server. Gmail SMTP server address – “smtp.gmail.com”
    • SMTP user - Fill the full email address of the email account you created earlier. Don't type just the username part, but the whole address (e.g. This email address is being protected from spambots. You need JavaScript enabled to view it.).
    • SMTP password - type the password of the same email account.
    • Encryption - It's recommended if you want your mail to be safer, to use encryption. So set the drop-down menu to TLS or SSL. You need to enable your Server / Hosting SSL Socket - I will tell you how to do on last step
    • Port - provided you chose TLS or SSL from the encryption drop-down menu, the port number that you should type is 465 / 587.
      Gmail SMTP port (TLS): 587.
      Gmail SMTP port (SSL): 465.
      In order to store a copy of outgoing emails in your Gmail or Google Apps Sent folder, log into your Gmail or Google Apps email Settings and....read the line bellow
    • Click on the Forwarding/IMAP tab and scroll down to the IMAP Access section: IMAP must be enabled in order for emails to be properly copied to your sent folder.

Setup Prestashop SMTP Setting Step 2

 

Ok, save your work!!! At the bottom of the Email page of your store's back office you'll find an email test function. It's right under the SMTP server settings.

Setup Prestashop SMTP Setting Step 3

SSL Problem

Let's test now : 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, specify on localhost. You need to enable ssl socket to use Gmail SMTP which encryption enabled during connection.


The solution to the problem is the following :

      • First stop your Apache service
      • If you are on Cloud server, go to next step. If you are on localhost, find libeay32.dll and ssleay32.dll in xampp\php\ folder, and copy it into xampp\apache\bin\ folder. Just overwrite the older files in there.
      • Edit php.ini file and remove the semicolon in “;extension=php_openssl.dll”. On localhost, you can find php.ini in xampp\apache\bin ( or xampp\php ).
      • If you can’t find this line, just insert “extension=php_openssl.dll” in your php.ini.
      • Start the Apache service.

That’s it, your SSL transport socket in your web server has been activated.

Sending Limits - Google limits the amount of mail a user can send, via its portable SMTP server. This limit restricts the number of messages sent per day to 99 emails; and the restriction is automatically removed within 24 hours after the limit was reached.

Google 2-Step Verification - You need to turn off Google 2-Step Verification to use Google Account as your Prestashop SMTP server.

What do you thing about this Prestashop Tutorial? If you have any questions, please comment below.

06/03/2018 updated: Some one reported that they can not sent the email using Yahoo SMTP server. I suggest to use Gmail Smtp server ( free, limited ) or Zoho ( free, limited ) or Mailgun smtp server ( free and paid - i love it so much ) !

31/07/2016 updated: Because Google account page has changed, you need to turn on "Allow less secure apps" on your Google Account to make sure your Prestashop website can sends the email.
Watch this video tutorial for more information!

Author : Frank Nguyen
Frank Nguyen

The founder of the Owaci, a fast-growing ecommerce company, main developer of PrestaSOO team. Subscribe to receive his articles to show you how to manage, develop your Prestashop website.

PrestaSOO website uses cookies. By continuing to use this website, you are giving consent to cookies being used. More details… X