---
title: "Setting up Sendgrid SMTP Email in ERPNext"
space: "ERPNext"
url: "https://docs.frappe.io/erpnext/setting-up-sendgrid-smtp-email-in-erpnext"
updated: "2026-03-06"
---

SMTP, or simple mail transfer protocol, is a quick and easy way to send email from one server to another. SendGrid provides an SMTP service that allows you to deliver your email via our server instead of your client or server. ERPNext comes built-in with a configured email client so that you can send and receive emails in ERPNext and append them to documents if required.

**Integrating SendGrid's Web API**

SendGrid’s SMTP API allows developers to specify custom handling instructions for e-mail using an X-SMTPAPI header inserted into the message.

**Step 1:** You need to create an API key to authenticate your application. In this case, *ERPNext*. Learn more about integrating SendGrid with SMTP [here](https://sendgrid.com/docs/API_Reference/SMTP_API/integrating_with_the_smtp_api.html)

Click on SMTP Relay![Screenshot 2024-06-01 at 12.44.17 PM](/files/Screenshot 2024-06-01 at 12.44.17 PM.png)  


Generate an API Key![Screenshot 2024-06-01 at 12.44.33 PM](/files/Screenshot 2024-06-01 at 12.44.33 PM.png)  
  
**Step 2:** Once your *API key* has been created, you need to configure it in your ERPNext account &gt; Create a **New** **Email Account.**

  


**Email Address:** *Your Email Address*

**Service:** Select "*SendGrid*"

Check "Use Different Email ID"

**Alternative email ID:** apikey

**Password:** *&lt;API Key Generated in step 1&gt;*

Outgoing server: &lt;server name generated in step 1&gt;

Port: &lt;port number generated above&gt;

![Screenshot 2024-06-01 at 12.44.45 PM](/files/Screenshot 2024-06-01 at 12.44.45 PM.png)  


For SSL connections, uncheck the "use TLS" option![Screenshot 2024-06-01 at 12.45.14 PM](/files/Screenshot 2024-06-01 at 12.45.14 PM.png)  


Now **save** this information and you have successfully configured the SendGrid SMTP Email in ERPNext.

  
  


Power to you!

  
  


  
  


-----

**﻿**

