📣🚀🐣🌼 Sonic Bloom - Spring Sale! | Exclusive offers for Cloud Shared Hosting - 70% OFF | Starting from $3.99/mo
Learn Prestashop 1.7

Prestashop is lightweight, SEO friendly E-Commerce platform for large Online Stores!

• Last Updated: 01/13/2020
• ( 9 minutes reading )

How to configure your Prestashop 1.7 Online Store with SMTP settings for outbound emails

Introduction

The email service maintained by PrestaShop 1.7 is a crucial part of the interaction between your customers and your Online Store. Prestashop 1.7 sends an email for basically every action the user takes from purchasing products to changing the password for their profile. Furthermore, the email service can be utilized by shop owners for sending newsletters or any custom coupon codes in order to engage with the customers even more. 


To send any outbound emails, Prestashop 1.7 is configured by default to utilize the mail service of the web hosting server directly without authenticating thanks to the PHP mail function, however, that is not always the correct approach considering the fact that nearly always the Outbound Mail IP address of the server gets blacklisted, thus causing any outbound emails to be rejected. The solution to this issue is rather simple and also included in the default set of features PrestaShop 1.7 offers. It is called SMTP and it basically connects your PrestaShop 1.7 Online Store with the Email service offered either by the Web Hosting Provider or by any third party Mail Provider like Google Gmail for example, using settings for SMTP authentication. 


In this tutorial, you are going to learn how to set up the SMTP settings for your PrestaShop Online Store and how to integrate the protocol in order for all the emails that are sent from your Store to use it.

 

Step 1: Accessing the “Email” page

The email configuration of your Prestashop Online Store, like every other setting is located in the admin area of Prestashop. So, to access the Email Settings page you will first have to be logged in as an administrative user.  Then, from the main left vertical navigation menu, you have to look for the “Advanced Parameters” option. When you find it, please, click on it. А drop-down menu will appear with the following options “Information”, “Performance”, “Administration”, “Email”, “Import” and so on.

 

Accessing the E-mail menu

 

Out of all these options, please, click the “Email” one.  This action will redirect you to the “Email” page.

 

Step 2: The interface of the “Email” page

Once redirected to the “Email” page you will be presented with few sections.

 

E-mail page overview

 

In the first section, you will be presented with a list of all the emails that were sent from PrestaShop, containing the following information: “Recipient”, “Template”, “Language”, “Subject”, “Sent”, “Actions” and a button for the settings.

 

E-mails sent from Prestashop

 

The second section is called “Emails” and it contains options about the settings of the emails. More precisely - how they are going to be sent and the format of the sent emails.

 

Email settings section

 

The first option in the “Email” section contains a drop-down menu and is about where the customers will send messages from the order pages. The option is called “Send email to”. At the end of the checkout process, the customer can leave a message to your staff. With that option, you can decide to whom this message will be sent. 


For example, if you want the messages from the customers to arrive at the “Customer service” department, then you should mark the customer service option from the drop-down menu. That means that people who are part of the customer service team will be responsible to take care of the email. Otherwise, if you prefer the messages to go to the person responsible for maintaining the website, click the webmaster option.


Next, in that section, you will see a few different options related to the method of how the emails of your Online Store will be sent. 

 

  • Use PHP’s mail() function (recommended: works in most cases)” - The PHP mail function does not require any type of authentication. The emails can be directly sent to their recipients using the mail service of the web hosting server. This is not always the correct approach however, because often especially with Shared Web Hosting services the servers are with low reputation and any emails they sent will be rejected.
  • Never send emails (may be useful for testing purposes)” - This option is used when you would like to completely disable the email functionality of Prestashop. Please bear in mind that enabling this option will cause even for the order confirmation emails to remain unsent. If you are an advanced user, you will probably prefer to configure the SMTP settings for the mail service of your Online Store instead of using PHP’s mail function. To start managing the SMTP protocol you have to click on the “Set my own SMTP parameters (for advanced users ONLY)” radio button. You will notice that the moment you click that radio button a third section appears with a few more options. You are going to learn more about how to configure that new section of settings in the next step.

 

The next part of that section is about in which type of format you want the emails to be sent in: “Send email in HTML format”, “Send email in text format” or do “Both”.

 

Choose the format of the sent emails

 

The last option in that section is called “Log emails”.

 

Log emails option

 

By default, that option will be marked on “Yes”, but if you do not want to keep the track of the emails sent by your Online Store, please, click the “No” button then. This way you will disable that option.


Once ready with that, please, click the “Save” button at the bottom of the section.

 

Saving the email configuration

 

Under the section that appears if the option “Set my own SMTP parameters” is chosen there is one last section. It is called “Test your email configuration”. The purpose of that section is for you to see if the email configuration is working properly by sending a test email to an email address of your choice.

 

Test the email configuration option

 

In the next step, you will learn more about the “Email” section and how to actually set up the SMTP settings for your emails.

 

Step 3: How to configure the SMTP mailer

Now, the option we are looking for out of these three is called:

 

  • Set my own SMTP parameters (for advanced users ONLY)” - With that option, you can set custom SMTP parameters. As we mentioned above, when that option is chosen a new section appears.

 

Choosing the option to use SMTP configuration

 


Now, let’s move to the section that appears and is the important one for setting the SMTP parameters. That section is called “Email” again and it has 6 fields that should be configured.

 

The SMTP configuration section for the emails

 

The information that you have to fill out should be provided to you by:

  • Your System Administrator
  • Your Web Hosting Provider
  • Your Internet Service Provider
  • Your Email Service provider

Please, bear in mind, you have to make sure to enter the information exactly as being provided to you.


Let’s start with the options one by one:

  • Main domain name” - that field has to be filled out with the domain of your Online Store
  • SMTP server” - You should fill this field with the hostname of the SMTP server as provided to you by your web hosting provider. 
  • SMTP username” - In that field, you have to enter the full email address of the email account that you had created with your web hosting provider. Please, bear in mind, that you have to type the whole address. For example [email protected].
  • SMTP password” - here you have to type the password for the same email account
  • Encryption” - In case you want your mail to be safer, you should use encryption. The encryption option provides you with a drop-down menu with three options in there: “None” - that is if you do not want to have any encryption for your mails, “TLS” and “SSL”.
  • Port” - depending on what encryption you chose, the port number you should type has to be either 465 or 587.

After you are done setting the SMTP configuration, please, click the “Save” button at the bottom of that section.

 

Saving the SMTP configuration

 

The last section is called “Test your email configuration”.

 

Testing the configuration

 

The moment you are done configuring your emails, please, enter your own email address in the field called “Send a test email to”. After that click the “Send a test email” button. Now, please, check your inbox of the provided email address to verify that you actually received the test email in the correct format. If you have not entered the correct information when you click the “Send a test email” button, you will receive a label at the bottom of the page saying which are the errors.

 

Test message successfully sent message

 

Congratulations! Today you learned the benefits of having SMTP settings for outbound emails and how to configure those.

...
Simeon
System Administration & Network Operations Captain

Simeon is an experienced System Administrator with over 10 years of experience in the Web Hosting field. He is recognized unanimously as the man behind every technical innovation or improvement that HostArmada introduces. Adaptable and responsible, he solves every technical issue that we or our clients throw at him. Every so often you will find him publishing technical content on our website.