WordPress

WordPress is the world's most popular Content Management System (CMS), often extended with e-commerce functionality (WooCommerce). Integrating with MessageFlow allows all email communication (e.g., form notifications, order confirmations) to be sent through our professional infrastructure. Instead of relying on the default, often unreliable, hosting mail function, you gain control over your server reputation, access to advanced analytics, and confidence that your messages are being handled correctly.

Below, we present three popular configuration methods: two using a plugin and one for developers, based on code modification.

Before you begin

Regardless of the method you choose, make sure you have your MessageFlow SMTP credentials ready. You will need them during the configuration.

  • You can find these credentials in your MessageFlow panel under Email API -> Settings -> SMTP Accounts.

  • For more information, see our general documentation: SMTP Integrations


Method 1: Integration using the "Easy WP SMTP" plugin

This popular plugin allows you to redirect WordPress email sending to an external SMTP account in a few simple steps.

1. Plugin Installation

  • In your WordPress dashboard, go to Plugins -> Add New.

  • In the search field, type "Easy WP SMTP".

  • Install and then activate the plugin.

2. Plugin Configuration

  • From the left-hand menu, select Settings -> Easy WP SMTP.

  • In the Mailer Settings section, choose Other SMTP.

  • Fill out the form using your account details from MessageFlow:

    • SMTP Host: smtp.messageflow.com

    • Type of Encryption: SSL

    • SMTP Port: 465

    • SMTP Authentication: On

    • SMTP Username: Enter your username in the format 1.your_account_name.smtp.

    • SMTP Password: Enter your SMTP account password.

  • In the General Settings section, add:

    • From Email Address: Enter the email address that will be the sender. Remember that this domain must be properly authorised in MessageFlow beforehand.

    • From Name: Enter the name your recipients will see.

  • Click Save Settings.


Method 2: Integration using the "WP Mail SMTP" plugin

WP Mail SMTP is one of the most popular plugins for configuring mail in WordPress. The following steps will help you set it up.

1. Plugin Installation

  1. In your WordPress dashboard, go to Plugins -> Add New.

  2. Search for "WP Mail SMTP", then install and activate the plugin.

  3. After activation, go to the plugin's settings by clicking WP Mail SMTP in the menu.

2. Plugin Configuration

  1. In the General tab, under the Mail section, fill in the following fields:

    • From Email: Enter the sender's email address. The domain must be authorised in MessageFlow beforehand.

    • Force From Email: We recommend checking this option.

    • From Name: Enter the sender's name.

  2. In the Mailer section, select the Other SMTP option.

  3. In the new Other SMTP section that appears, enter the following details:

    • SMTP Host: smtp.messageflow.com

    • Encryption: TLS

    • SMTP Port: 587

    • Authentication: Ensure the toggle is ON.

    • SMTP Username: Enter your username in the format 1.your_account_name.smtp.

    • SMTP Password: Enter your SMTP account password.

  1. Click Save and Continue.


Method 3: Integration via code (for developers)

Note: This method is recommended for advanced users. Modifying theme files can lead to site errors if done incorrectly. Always create a backup of your functions.php file before making changes.

  1. Open the functions.php file of your active WordPress theme.

  2. Paste the code below at the end of the file, filling in your details in the appropriate places:

add_action('phpmailer_init', 'send_smtp_email');
function send_smtp_email($phpmailer){
    $phpmailer->isSMTP();
    $phpmailer->Host = "smtp.messageflow.com";
    $phpmailer->SMTPAuth = true;
    $phpmailer->Port = "465";
    $phpmailer->Username = "1.YOUR_ACCOUNT_NAME.SMTP";
    $phpmailer->Password = "YOUR_SMTP_PASSWORD";
    $phpmailer->SMTPSecure = "ssl";
    $phpmailer->From = "[email protected]";
    $phpmailer->FromName = "Your Sender Name";
}

Verifying the integration

After configuring any of the methods, perform an action on your website that generates an email (e.g., fill out a contact form or use the 'Email Test' tab in your SMTP plugin).

Then, log in to the MessageFlow panel and go to the Email API -> Email Reports section to check its status.

Last updated