WordPress
Last updated
Last updated
WordPress is one of the most popular solutions in the field of content management systems (CMS), which enables the creation of websites, online stores and blogs. The extraordinary flexibility of WordPress allows for integration with various plugins, including those that enable sending emails, such as thank you messages for filling out a form or newsletter subscription confirmations. However, when we want to change the traditional host SMTP server to an external service, e.g. EmailLabs, we may face some challenges.
If we decide to change the SMTP server in WordPress, it is worth using ready-made plugins that enable quick and efficient setup. Alternatively, if you're a developer, you can customize the configuration yourself. Below we'll guide you through both methods.
The data needed for integration via SMTP can be found in the EmailLabs panel in the section: Email API -> Settings -> SMTP Accounts.
Below you will find steps describing the process of integrating WordPress with EmailLabs using the Easy WP SMTP plugin, which will enable effective delivery of emails from your site.
Fill out the configuration form with the data received from EmailLabs:
SMTP Host: smtp.emaillabs.net.pl
Type of Encryption: Select "TLS" or "SSL" depending on your preference.
SMTP Port: 587 (with TLS), 465 (with SSL).
SMTP Authentication: Check "On".
SMTP Username: Enter your EmailLabs SMTP account name in the format 1.youraccountname.smtp
.
SMTP Password: The SMTP password set in the EmailLabs panel.
In the "General Settings" section, add:
From Email Address
From Name
Saving the Configuration
Click Save settings to save the data.
Open the functions.php file in your WordPress template. Paste the following code, adjusting it to your data:
After successful configuration, perform a test email send to ensure that the integration works correctly.
With the following steps, your WordPress will be successfully integrated with an external SMTP server using the WP Mail SMTP plugin. This will allow you to improve email deliverability and take advantage of the advanced features available in EmailLabs.
Fill in the following fields in the plugin's general settings section:
From Email: Enter the email address from which emails will be sent.
Force From Email: Check this box.
From Name: Enter the name to be displayed as the sender.
Force From Name: Check this box if you want to force the From Name.
Return Path: Check this box (recommended to receive information about undelivered emails).
Next, for "Mailer", select the option: Other SMTP.
Configure the plugin settings using the information received from EmailLabs:
SMTP Host: smtp.emaillabs.net.pl
Encryption: Select your preferred encryption method:
TLS (recommended)
SSL
SMTP Port: Enter the appropriate port depending on the selected encryption:
587 for TLS (recommended)
465 for SSL
Authentication: Select the ON option. (If this option is turned off, the SMTP username and password fields will not be available).
SMTP Username: Enter your EmailLabs SMTP account name in the format 1.youraccountname.smtp
.
SMTP Password: Enter the SMTP password set in the EmailLabs panel.