Integrating with the SMTP API

Integrating with SendGrid

To integrate with SendGrid's SMTP API:

  1. Create an API Key with at least "Mail" permissions.
  2. Set the server host in your email client or application to

    • This setting is sometimes referred to as the external SMTP server or the SMTP relay.
  3. Set your username to apikey.
  4. Set your password to the API key generated in step 1.
  5. Set the port to 587 (or as specified below).

SMTP ports

Build SMTP email

Now that you've integrated, learn to build SMTP email.

Rate limits

  • You may send up to 5k messages per SMTP connection.
  • You may open up to 10k concurrent connections from a single server.

Additional resources

See a mistake? Edit this page