I would like to send a contact form via formIt using Brevo SMTP.
The domain and sender have been successfully verified in Brevo.
An SMTP key is also active in Brevo.
System settings in ModX:
mail_smtp_hosts: smtp-relay.brevo.com mail_smtp_port: 587 or 465 or 2525 mail_smtp_secure: (empty) or ssl or tls mail_smtp_user: ***@smtp-brevo.com mail_smtp_pass: (Brevo SMTP key) mail_smtp_auth: Yes mail_use_smtp: Yes
Error in QuickEmail:
Send Failed
Mailer error info: Connection to SMTP server failed.
Error from SMTP server: Failed to connect to server SMTP code: 110 Additional SMTP info: Connection timed out
Server Debug Information:
2026-04-21 08:27:43 SMTP ERROR: Failed to connect to server: Connection timed out (110)
Connection to the SMTP server failed.
I don’t know if this applies to Brevo, but in the past when setting up an external SMTP service, I’ve sometimes had to contact the website host and have them whitelist the IP numbers the external service uses. The host was blocking the connection, not MODX.
Found this in the Brevo docs (I can’t tell if you’ve tried these particular pairings):
If you want to create an encrypted connection with TLS encryption, you should use port 587. When configuring your website or email client to send emails through SMTP, it is recommended to use port 587 as the default option.
However, if port 587 is unavailable due to certain restrictions, a common alternative is port 2525. While port 2525 is not officially recognized as an SMTP port, most service providers widely use and support it.
If you want to create an encrypted connection with SSL encryption, you should use port 465 for SMTP.
Also, I think that there are times when the “sender” needs to have a local email account and be authorized to send email via the server, even if you’re using a third-party SMTP service. I could be wrong.