---
title: "SMTP"
description: "Send email over SMTP as an alternative to the REST API."
canonical: "https://docs.cm.com/email-gateway-api/guides/smtp"
---

# SMTP

> Send email over SMTP as an alternative to the REST API.

Source: https://docs.cm.com/email-gateway-api/guides/smtp

Email Gateway can send email over SMTP as an alternative to the REST API. This is useful if you're migrating from an existing SMTP setup or working with a tool or library that only speaks SMTP.

## Getting your credentials

Your SMTP credentials are available in the Email Gateway App, under Settings > SMTP:

- Host: `mx.email.cm.com`
- Port: `587`
- User: your account's SMTP username, for example `cm-gateway-2d167a9b02`
- Password: Your Product Token

Each account has its own SMTP username, generated when the account is created. Copy it exactly as shown in Settings > SMTP. It is lowercase and case sensitive.

Port `587` is currently the only port we support, using STARTTLS: the connection starts in plaintext and upgrades to TLS before any credentials or message content are sent.

## Verified domains still apply

Sending over SMTP doesn't change your domain requirements. The sending domain on each message still needs to be verified under [Domains](https://docs.cm.com/email-gateway-api/guides/email-domains), exactly as it does when sending through the REST API.
