SMTP for Joomla — site mail that arrives
By default, Joomla sends 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. The result: registration emails and contact forms that never arrive, without you ever seeing an error message.
Joomla needs no extension for this. In the global configuration you pick SMTP as the mailer and fill in your relay's details. Every component and extension that sends mail follows that setting automatically.
Why it goes wrong without a relay
Joomla sites often run for years on the same shared hosting and send from the same IP address as hundreds of other sites. You do not control that address's reputation — one spamming neighbour is enough to drag your registration emails into the spam folder too. A relay with its own login takes your mail out of that shared pool.
Setting up SMTP in Joomla
Collect your details
Log in to your 2mail account and retrieve your SMTP server, username and password there.
Fill them in inside Joomla
Open Joomla's global configuration and go to the mail settings. Set the mailer to SMTP and fill in host, port, encryption, username and password. Set the sender address and sender name to your own domain. Joomla offers a button there to send a test email — use it, to an external address at a major provider.
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.
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 Joomla 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. |
| Port | The port that matches your chosen encryption; your account shows which one. |
| Encryption | TLS. Never send unencrypted — your credentials would otherwise travel in plain text. |
| Username | The SMTP login of your 2mail account. |
| Password | The matching password. Never use the password of an employee's mailbox. |
Which emails Joomla 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.
Pitfalls with Joomla
Extensions with their own mail settings
Some extensions — form builders, shops — have their own mail settings that override the global configuration. If the PHP mail function or an old server is still set there, that mail leaves by a different route. Check per extension that it follows the global mailer.
Sender and reply-to
Set the sender address to your own domain, not to that of the visitor who filled in a form. If you want to reply directly, use the reply-to field. A sender on a foreign domain fails DMARC, however correct everything else is.
Reset after a move
The mail settings live in Joomla's configuration file. During a hosting move or a reinstall they are sometimes reset to the default. Send one test email to an external address after every such change.
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.