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
- In SendGrid, open the SMTP Relay setup.
- Create an API key.
- 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
- Open the Email Account list, and select New.
- In Email Address, enter your sender address.
- In Service, select Sendgrid.
- Select Use different Email ID, and enter
apikeyin Alternative Email ID. - In Password, paste the API key.
- Select Enable Outgoing.
- Check the Outgoing Server and Port against the values from SendGrid.
- For an SSL connection, clear Use TLS and select Use SSL.
- Select Save.
ERPNext tests the connection when you save. Send a test email from a document to check the setup.