SMTP (Simple Mail Transfer Protocol) email sending errors on Hostinger have six common causes: connection failures, login rejections, relay denials, PHP mail() limits, plugin misconfiguration, and sending limits. Each error has a different fix. Match your exact error message to its section to resolve it.
Before you start
This article applies to sending email through SMTP from email clients, websites, and plugins on Hostinger Web hosting, Cloud hosting, and VPS (virtual private server) plans. Copy the exact error message first, because each fix depends on it.
SMTP email sending errors on Hostinger and their fixes
There are six common SMTP email sending errors on Hostinger. The table matches each error to its cause and its fix section.
| Error | Cause | Fix section |
|---|---|---|
SMTP connect() failed or a connection timeout |
The host or port is wrong, or the port is blocked. | Fix the SMTP connect() failed error on Hostinger |
Authentication failed |
The username or password is incorrect. | Fix the SMTP authentication failed error on Hostinger |
Relay access denied |
The sender isn’t authenticated for the sending domain. | Fix the relay access denied error on Hostinger |
Emails missing after a website sends them with PHP mail() |
The website exceeds the PHP mail() limit. |
Switch from PHP mail() to SMTP on Hostinger |
| SMTP works in one plugin or platform but not another | The platform’s SMTP settings are misconfigured. | Fix SMTP errors in WordPress and PrestaShop plugins on Hostinger |
| A daily or per-minute sending limit error | The sender reached a sending limit. | Check SMTP sending limits on Hostinger |
Fix the SMTP connect() failed error on Hostinger
The SMTP connect() failed error or a connection timeout means the sender can’t reach the Hostinger SMTP server. A wrong host, a wrong port, or a blocked port causes it.
- Set the SMTP host to
smtp.hostinger.com. - Set the encryption to SSL and the port to
465. - Switch to TLS or STARTTLS with port
587if encryption issues continue. - Check that your firewall or network doesn’t block the port.
Hostinger doesn’t block SMTP port 25 on VPS plans. If port 25 fails on a VPS, check your managed VPS firewall configuration, as explained in Is SMTP port 25 blocked on Hostinger VPS?
Web hosting and Cloud hosting plans close outgoing port 25, so use port 465 or 587 instead.
Fix the SMTP authentication failed error on Hostinger
The Authentication failed error means the Hostinger mail server rejected the username or password. Use the full email address, such as name@domain.tld, as the username, and the mailbox password as the password.
- Enter the full email address in the username field.
- Re-enter the mailbox password.
- Reset the password if it’s no longer correct, following How to reset a Hostinger Email mailbox password.
- Leave SMTP authentication turned on in your email client or plugin.
Fix the relay access denied error on Hostinger
The Relay access denied error means the Hostinger mail server rejected the message because the sender wasn’t authenticated for the sending domain. Authenticate with the mailbox that matches the From address.
- Turn on SMTP authentication in your email client or plugin.
- Log in with the full address of the mailbox that sends the message.
- Set the From address to the same mailbox.
Switch from PHP mail() to SMTP on Hostinger
Hostinger limits emails sent with PHP mail() and other unauthenticated methods to 10 per minute and 100 per day. Send through SMTP with PHPMailer or an SMTP plugin instead, because SMTP authenticates each message.
To check whether your website hit the limit, open the Sendmail rate limit log in File Manager at /home/u123456789/.logs/exim.log. Lines marked RATE LIMIT EXCEEDED show the mailbox, the sending rate, and the limit type. The restriction lifts automatically once the sending rate drops below the limit.
For the full explanation, follow PHP Mail limitation explained: How to improve email delivery with SMTP.
Fix SMTP errors in WordPress and PrestaShop plugins on Hostinger
If SMTP works in an email client but fails in a website plugin, the plugin’s SMTP settings are the cause. In Easy WP SMTP, choose Other SMTP as the mailer, turn off the Auto TLS toggle, and enter the same email address in SMTP Username and From Email.
Follow How to set up the Easy WP SMTP plugin on WordPress at Hostinger for WordPress. Follow How to configure SMTP on PrestaShop at Hostinger for PrestaShop. For Contact Form 7, follow How to set up “Contact Form 7” with Hostinger Email.
Check SMTP sending limits on Hostinger
A sending limit error means the sender exceeded the outgoing limit for its plan. The limit depends on where the email is sent from.
| Sender | Limit |
|---|---|
PHP mail() on Web hosting and Cloud hosting plans |
10 emails per minute and 100 per day. |
| VPS email | 5 emails per minute. |
| Hostinger Email mailbox | Per-mailbox limits are listed in Parameters and limits of Hostinger Mail. |
Wait for the sending rate to drop below the limit, then resend the message. Spread large volumes across smaller batches.
NOTES
- Contact Hostinger Support only when manual action is required, such as unblocking a port or raising a limit.
- Include the exact error message and the sending source, such as a website form, plugin, or email client.
After you match your error to its fix, SMTP sending works again on Hostinger. Send a test email to confirm the fix worked.
Additional resources