Jump to main content Jump to doc navigation

Mailtrap 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: Yes
  • mail_smtp_auth: Yes
  • mail_smtp_hosts: sandbox.smtp.mailtrap.io
  • mail_smtp_port: 587 (Mailtrap also recommends 2525)
  • mail_smtp_user and mail_smtp_pass: the sandbox credentials
  • mail_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

  • modmore
  • STERC
  • Digital Penguin
  • Jens Wittmann – Gestaltung & Entwicklung
  • CrewMark
  • Fabian Christen
  • Sepia River Studios
  • Dannevang Digital
  • Alex
  • A. Moreno
  • Chris Fickling
  • Stéphane Jäggi
  • Murray Wood
  • Anton Tarasov
  • JT Skaggs
  • deJaya
  • Lefthandmedia
  • eydolan
  • Following Sea
  • Guido Gallenkamp
  • YJ
  • Raffy
  • Snow Creative
  • Nick Clark
  • Guest
  • Helen
  • krisznet
  • Yanni
  • Richard

Budget

$194 per month—let's make that $500!

Learn more