> ## Documentation Index
> Fetch the complete documentation index at: https://help.circularo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Custom email provider

*This section is only visible if you have purchased the Custom Email Identity add-on (for the Business version) or are on the Enterprise version.*

There are two set up ways available: Plain SMTP or Microsoft Graph API. Which one you use depends on the email client you are using.

## Plain SMTP

**1. Switch the **SMTP Enabled** toggle **on****

**2. Fill in the required information**

**Host** - your SMTP server address, for example "[smtp.sendgrid.net](https://smtp.sendgrid.net)"

**Secure** - With it disabled, the connection starts unencrypted and then upgrades to encryption using STARTTLS. With it enabled, the connection is encrypted from the start, using SSL or TLS directly. Which one you need depends entirely on how your SMTP provider is configured on their end.

**Port** - the port number used by your SMTP server

**Sender name** - the name that will appear as the sender, for example "Circularo"

**Sender email** - the email address that will send your Circularo notifications. Keep in mind that this address usually needs to either match the account you're using for SMTP, or that account needs to have permission to send on behalf of a different address.

**Authentication method** - different details may need to be entered based on which method you choose.

* No Authentication - nothing else is needed
* Basic Authentication - the username and password for the account need to be filled
* Modern Authentication (OAuth 2.0) - username, Client ID, Client Secret, Access URL and Refresh Token need to be filled

**3. Test the connection**

Enter an email address that should receive the testing email and click **Send.**

The message shown should change to success and you should receive the test email. If you do not, please check the details entered and try again.

**4. Your SMTP servers are configured**

### SMTP with Microsoft Graph API

SMTP can be accessed via Modern Authentication set up in Microsoft Entra ID (formerly Microsoft Azure Active Directory), which uses tokens to access the SMTP from Circularo.

> [!NOTE]
>
> If you are unsure how to proceed or require any assistance, please [contact Microsoft support team](https://support.microsoft.com/cs-cz/contactus?ContactUsExperienceEntryPointAssetId=S.HP.SMC-HOME).

**1. Set up a Circularo application in Entra ID**

([Guide on registering an app in Entra ID](https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app?tabs=certificate%2Cexpose-a-web-api))

**2. Sign in to the [Azure Portal](https://portal.azure.com)**

**3. Access the Azure Active Directory**

From the left hand menu, select **Microsoft Entra ID**

**4. Create a New Application**

**1. Navigate to **App registrations****

**2. Click **\\+ New registration****

**3. Enter a name for the application and click **Register****

**5. Configure the Application**

**1. From the left-hand menu select **Manage → API Permissions****

**2. Click **Add permission****

**3. In the pop-up window select **Microsoft Graph → Application Permissions****

**4. Search for **Mail.Send** permission and add it**

**NOTE:** Once the API permission is added, the tenant admin needs to grant their consent by clicking **Grant admin consent for**

**6. Create Client Secret**

**1. From the left-hand menu select **Certificates & secrets****

**2. Click **New client secret****

**3. Choose preferred secret expiration and give the secret a name**

**NOTE:** When the secret expires, a new secret needs to be generated and entered in Circularo

**4. Click **Add****

**NOTE:** The secret value is displayed only once during the creation of the secret, if you don't manage to copy it, you will need to create a new secret

**7. Go back to Circularo**

**8. Navigate to the organization settings**

**9. Under **Emails** enable the **SMTP enabled** toggle**

**10. From the **Mailing provider** dropdown select **Microsoft graph API****

**11. Enter details**

**Sender email** - email of the service account that will be used to send Circularo notifications

**Client ID** - can be found in the Azure app registration under **Overview** as **Application (client) ID**

**Client Secret** - the secret value that you copied earlier

**Access URL** - can be found in the Azure app registration under **Overview → Endpoints** as **OAuth 2.0 token endpoint (v2)**

**12. Test the connection**

Once all the details are configured, you can fill in your own email in the **Email address** field and send a test email, if everything was configured properly, you should receive the **Success** message

**13. Your SMTP is configured**


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.