---
title: Configuring transactional mails via SMTP API
slug: campaign/docs/configuring-transactional-mails-via-smtp-api
docTags: 
createdAt: 2026-07-20T15:44:36.638Z
---

:::hint{type="info"}
**Note**

This topic is for administrators and developers with administration access rights in Magento 2.
:::

This topic describes how to configure sending of transactional mails via SMTP API with Magento 2. For transactional mails via the HTTP API, see [Transactional mails via HTTP API](docId\:tqGozvKYgWqDaxRmf7azk).

**Prerequisites:** You need an SMTP API user account for the SMTP connection between Optimizely Campaign and your shop. To set up the account, contact [customer support](docId\:ZWe1T3UPz3JW6_4mc76qV). You will receive a user name and password for the SMTP API.

To configure transactional mails via SMTP API, do the following:

1. Log in to Magento 2 with administrator rights.
2. Select **Stores** > **Configuration**.

   ![Images: Select Configuration](https://api.archbee.com/api/optimize/BrbvVORKJ5iIeSMZye5kI/4dAxx5_oj-bq3JKeDBujI-20260720-145351.png "Images: Select Configuration")
3. Select **Episerver** > **Episerver Campaign**.

   ![Images: Select Episerver> Episerver Campaign](https://api.archbee.com/api/optimize/BrbvVORKJ5iIeSMZye5kI/8GhsERRwGHVHf-VOfCl2H-20260720-145351.png "Images: Select Episerver> Episerver Campaign")
4. In the **SMTP API** area:

   - **Use Episerver Campaign SMTP API**. Select **Yes**.
   - **Username**. Enter your SMTP API user name.
   - **Password**. Enter your SMTP API password.

   ![Image: SMTP API area](https://api.archbee.com/api/optimize/BrbvVORKJ5iIeSMZye5kI/aUOyfPdeqPikyNPzgziNH-20260720-145351.png "Image: SMTP API area")
5. Save your changes.
