# Azure SendGrid SMTP Configuration

## Overview

This section provides instructions on how to configure an Azure SendGrid SMTP with WorkflowGen.

## Create the SendGrid account in the Azure Portal

The SendGrid account must be created in the [Azure Portal](https://portal.azure.com/). See [Create a SendGrid Account](https://docs.microsoft.com/en-us/azure/sendgrid-dotnet-how-to-send-email#create-a-sendgrid-account) for more information on how to create a SendGrid account. Once you've completed the configuration, you'll have:

* The server name (e.g. `smtp.sendgrid.net`)<br>
* The username (e.g. `apikey`)<br>
* The generated password<br>
* Port `25` or `587` set for TLS connections and explicit SSL connections.

For more information about the SendGrid SMTP integration, see the [Integrating with the SendGrid SMTP API](https://sendgrid.com/docs/API_Reference/SMTP_API/integrating_with_the_smtp_api.html) Twilio article.

## Configure WorkflowGen

To set up the connection between WorkflowGen and Azure SendGrid SMTP:

1. Go to the **General** tab in the Configuration Panel.<br>
2. In the **SMTP** section:<br>
   * Choose **Server** as the delivery method.<br>
   * In the **Host name** field, enter your server name.<br>
   * In the **Port** field, enter port `25` or `587`.<br>
   * Check **Use SSL/TLS**.<br>
   * In the **Username** field, add your username.<br>
   * In the **Password** field, add your password.<br>
3. Click **Test** next to the **Host name** field.<br>
4. In the **Recipient mail** field that will then appear under **Sender mail**, add an email address for testing, then click **Send**.

{% hint style="info" %}
WorkflowGen only supports TLS connections and explicit SSL connections.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.workflowgen.com/azure/8.3/azure-sendgrid-smtp-configuration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
