mailtrap.io
Last updated Oct 20th, 2026 | Page history | Improve this page | Report an issue
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$194 per month—let's make that $500!
Learn moreMailtrap is a service (free plan available) that captures email in a sandbox instead of sending it to the real recipient. On a development site this keeps test messages from reaching real customers. You read the captured messages in Mailtrap’s interface.
After creating an account, open the sandbox’s SMTP settings and copy the username and password.
In MODX, set these in System > System Settings:
mail_use_smtp: Yesmail_smtp_auth: Yesmail_smtp_hosts:sandbox.smtp.mailtrap.iomail_smtp_port:587(Mailtrap also recommends2525)mail_smtp_userandmail_smtp_pass: the sandbox credentialsmail_smtp_secure:tls
Port 465 also works with mail_smtp_secure set to ssl. The sandbox is for development; Mailtrap provides a separate live SMTP host for production mail.
See the generic SMTP instructions for enabling and testing email
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$194 per month—let's make that $500!
Learn more










