Set up SendGrid to send email ​

SendGrid is an SMTP relay service: it sends email for you in large volumes. Use it when your mailbox provider limits how much email ERPNext can send.

Prerequisites ​

  • A SendGrid account, with your sender address or domain verified in SendGrid.
  • The System Manager role in ERPNext.

Step 1: Create an API key in SendGrid ​

  1. In SendGrid, open the SMTP Relay setup.
  2. Create an API key.
  3. Copy the API key, the SMTP server name, and the port that SendGrid shows. SendGrid shows the key only once.

For details, read the SendGrid SMTP documentation.

Step 2: Create the email account in ERPNext ​

  1. Open the Email Account list, and select New.
  2. In Email Address, enter your sender address.
  3. In Service, select Sendgrid.
  4. Select Use different Email ID, and enter apikey in Alternative Email ID.
  5. In Password, paste the API key.
  6. Select Enable Outgoing.
  7. Check the Outgoing Server and Port against the values from SendGrid.
  8. For an SSL connection, clear Use TLS and select Use SSL.
  9. Select Save.

ERPNext tests the connection when you save. Send a test email from a document to check the setup.