---
"@context": https://schema.org
"@type": TechArticle
"@id": https://www.twilio.com/docs/sendgrid/for-developers/sending-email/modx#article
headline: MODX
description: Configure MODX to relay emails via SMTP with SendGrid. Easy-to-follow steps for efficient application of system settings adjustments.
url: https://www.twilio.com/docs/sendgrid/for-developers/sending-email/modx
inLanguage: en
dateModified: 2025-09-25T15:07:37.000Z
author:
  "@type": Organization
  name: Twilio Developer Education Team
publisher:
  "@type": Organization
  name: Twilio
---

# 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)
