2mail — SMTP relay from Belgian infrastructure

SMTP for WordPress — emails that actually arrive

By default, WordPress sends mail through the web server's PHP mail function. That works technically, but without authentication: to Gmail and Outlook, such a message is barely distinguishable from spam. Everyone knows the result — contact forms that never arrive and password-reset emails that end up in the spam folder.

An SMTP relay solves this by sending your mail through a server with an established reputation and proper authentication. In WordPress you set this up with an SMTP plugin; the five fields below are all you need.

Why it goes wrong without a relay

The classic symptom: the contact form reports "sent" but nothing comes in, or only for some recipients. The mail does leave — it gets rejected along the way or flagged as spam because nothing proves it comes from your domain.

Setting up SMTP in WordPress

1

Collect your details

Log in to your 2mail account and retrieve your SMTP server, username and password there.

2

Fill them in inside WordPress

Install an SMTP plugin for WordPress. There are several; which one you choose makes no difference to the settings, because they all ask for the same SMTP details. Fill them in and send the test email the plugin offers.

3

Authenticate your domain

Make sure SPF, DKIM and DMARC are set correctly for your domain, so recipients can verify that the mail comes from you.

4

Test

Send a test message to an address at a major provider and check that it arrives in the inbox and not in the spam folder.

The fields WordPress asks for

Every platform names them slightly differently, but it is always the same five. The actual values are tied to your account and can be found in your 2mail account — take them from there, so you are sure to use the right ones.

Field What you enter
SMTP server (host)The server name from your 2mail account.
PortThe port that matches your chosen encryption; your account shows which one.
EncryptionTLS. Never send unencrypted — your credentials would otherwise travel in plain text.
UsernameThe SMTP login of your 2mail account.
PasswordThe matching password. Never use the password of an employee's mailbox.

Which emails WordPress sends

As soon as the relay is set up, all of these run through 2mail — you do not have to configure them one by one.

Messages from your contact form
Password resets for administrators and users
Notifications about new comments or user registrations
Warnings about updates and security

Pitfalls with WordPress

Sender address on your own domain

Set the "from" address to an address on your own domain, not to the address of the visitor who filled in the form. If you do the latter, you are sending mail on behalf of a domain that is not yours — exactly what spam filters trigger on. Put the visitor's address in the reply-to field.

One plugin that sends mail

If multiple plugins are running, each with its own SMTP settings, there is no telling which one wins. Pick one and switch the rest off.

Test after every migration

If your site moves to another server or URL, immediately check that mail still goes out. This is the part that most often breaks silently.

SPF, DKIM & DMARC explained About deliverability

A different platform?

SMTP is a standard protocol: any system that speaks SMTP — a CRM, an ERP, a custom application or a server — can send through 2mail using the same five fields.

Frequently asked questions about SMTP for WordPress

By default, WordPress sends via the web server's PHP mail function, without authentication. To Gmail and Outlook, such a message is barely distinguishable from spam. The message does go out, but is refused along the way or marked as spam because nothing proves it comes from your domain.
For the settings it makes no difference: every SMTP plugin for WordPress asks for the same five details — server, port, encryption, username and password. Pick one and disable other plugins that also send mail, otherwise it is unpredictable which one wins.
An address on your own domain, not the address of the visitor who filled in the form. The latter means you are sending mail on behalf of a domain that is not yours — exactly what spam filters react to. Put the visitor's address in the reply-to field.
Yes. The relay ensures your mail leaves via a server with reputation, but SPF, DKIM and DMARC prove to the recipient that this server may send on behalf of your domain. Without those records, part of the problem remains.
Every SMTP plugin offers a test mail. Send it to an address at a major provider and check whether it arrives in the inbox and not in the spam folder. Repeat that test after every migration to another server or URL — that is the part that most often breaks silently.
In your 2mail account. They are account-specific, so we do not publish them on the website — you retrieve them there so you are certain to use the right ones.
Trust Guard Security Scanned
Call us
Send an email