# MODX

MODX supports sending email over SMTP. To have MODX relay email through SendGrid go to *System Settings > 'Mail' area* and change:

* **SMTP Authentication** - Yes
* **SMTP Hosts** - smtp.sendgrid.net
* **SMTP Password** - sendgrid\_api\_key
* **SMTP Port** - 587
* **SMTP Connection Prefix** - tls
* **SMTP User** - sendgrid\_username (use `apikey` for v3 API or later)
* **Use SMTP** - Yes

The following image shows these settings.

![MODX SMTP settings for SendGrid with host smtp.sendgrid.net and port 587.](https://docs-resources.prod.twilio.com/f313c3ddc9a9b374cf76e2a29f441c4f1b8fb784fe5fc4eb73c4c1e117c63753.png)
