WordPress and e-mail

SMTP in WordPress instead of random PHP mail sending

A contact form should send messages through an authenticated SMTP mailbox, not anonymously from a PHP process.

Why SMTP?

SMTP authentication improves sender identification and makes delivery diagnostics easier.

For a business domain, SMTP should be combined with correct SPF, DKIM and DMARC records.

What should be checked?

Server address, port, encryption, login, password and sender address should match the mailbox.

If a recipient claims that a message did not arrive, mail server logs help confirm handoff to the recipient's server.

Related topics