Integrating with Sendgrid

To integrate with SendGrids SMTP API:

  1. Create an API Key with at least “Mail” permissions.
  2. Set the server host in your email client or application to smtp.sendgrid.net.
    • 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.

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

SMTP Ports

Rate limits

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

Additional Resources