Master da Web
SMTP guide

How to set up SMTP in WordPress and stop landing in spam

By default, WordPress sends through PHP's mail() function, without authenticating your domain, and many order, form and password emails land in spam or never arrive. With an SMTP plugin and your sending key, they go out signed with DKIM and aligned with SPF and DMARC.

The sandbox is free for everyone. Already run a cloud service with us? The free plan is yours too.

wp-config.php

// WP Mail SMTP: the settings live in the file, not the databasedefine( 'WPMS_ON', true );define( 'WPMS_MAILER', 'smtp' );define( 'WPMS_SMTP_HOST', 'YOUR_PANEL_HOST' );define( 'WPMS_SMTP_PORT', 587 );define( 'WPMS_SSL', 'tls' );define( 'WPMS_SMTP_AUTH', true );define( 'WPMS_SMTP_USER', 'apikey' );define( 'WPMS_SMTP_PASS', 'YOUR_SENDING_KEY' );define( 'WPMS_MAIL_FROM', 'hello@yourdomain.com' );define( 'WPMS_MAIL_FROM_FORCE', true );define( 'WPMS_MAIL_FROM_NAME', 'My Store' );

These are WP Mail SMTP's constants, and they keep the password out of the WordPress database. In FluentSMTP and Post SMTP, the same settings go into the plugin's screen.

WordPress

Step by step: SMTP in WordPress

From a verified domain to the first delivered email, with the result of each send in the panel.

  1. 1

    Verify your domain

    Add the domain in the panel, under Email & SMTP, and publish the DNS records it shows. With your DNS hosted with us, it takes one click.

  2. 2

    Create a sending key

    The key is the SMTP password and is shown only once: save it before you close the window.

  3. 3

    Configure the plugin

    In WP Mail SMTP, FluentSMTP or Post SMTP, choose generic SMTP and fill in the panel's host, port 587 with TLS, the username apikey and the key.

  4. 4

    Send a test

    Use the plugin's test email and see in the panel's Activity what happened to it, with the receiving server's answer.

Beyond SMTP

What you get by sending with Master da Web

Delivery under your domain

DKIM with your domain's key, aligned SPF and DMARC: what Gmail, Yahoo and Microsoft check before they accept.

Per-recipient logs

Delivered, deferred, bounced or marked as spam, with the receiving server's full answer.

Webhooks and suppressions

Signed events in your system, and bounces and complaints taken off the list by themselves.

Free sandbox

A sandbox key captures messages so you can test without delivering anything to anyone.

What it costs

Plans from R$29.00 a month, with 10,000 emails included. If you run a cloud service with us, you start on the free plan, with 3,000 emails a month. The sandbox is free for everyone.

See plans and prices
Discover the SMTP & Email API
FAQ

Questions about SMTP in WordPress

What comes up most while setting it up.

Set up SMTP in WordPress today

Create your account, verify your domain and start testing today.