Integrations and ConnectorsConnectorsSetup GuidesMessaging

MailerSend Connector

Using Descope's connectors allows you to use MailerSend, a transactional email platform, to send emails in your authentication flow. This article will guide you through setting up the connector and incorporating it into your flow.

Configure MailerSend connector

Settings

To integrate the MailerSend connector into your project, head to the Connectors page, select the MailerSend connector, and configure the following parameters:

  • Connector name: Custom name for your connector. This will come in handy when creating multiple connectors from the same connector template.
  • Connector description: (Optional) Describe what your connector is used for.
  • API Key: MailerSend API Key.
  • From Email address: A verified email address you own. Defines the email sender.

MailerSend connector configuration

Testing

Before creating your connector, it is important to verify that the configuration works. Click Test and review the Test Results panel. When it succeeds, click Create.

Using the Connector in Authentication Methods

The MailerSend connector can be used to send OTP codes and Magic Links in your authentication methods.

One-time Password (OTP)

To use the MailerSend connector for email OTP messages:

  1. Navigate to Authentication Methods -> One-time Password
  2. In the Email section, select your configured MailerSend connector from the dropdown
  3. Customize your email template if needed

Your OTP emails will now be sent through MailerSend.

To use the MailerSend connector for Magic Link emails:

  1. Navigate to Authentication Methods -> Magic Link
  2. In the Email section, select your configured MailerSend connector from the dropdown
  3. Customize your email template if needed

Your Magic Link emails will now be sent through MailerSend.

Implementing the MailerSend connector in your flow

You can also use the MailerSend connector to send custom emails within your flows.

1. Select or Create a flow

  • Access your Dashboard -> Flows.
  • Select an existing flow or create a new one.

2. Add the MailerSend connector to the flow screen

  • In the flow editor, tap the + icon, select Connector, and choose MailerSend / Send Email.

  • Click to configure the connector and fill out the fields:

    • To: Who the email should be sent to. Setting this dynamically based on previous attributes is recommended (eg. {{user.email}}).
    • Subject: Enter the subject of the email.
    • Body: Enter the body text of the email.

MailerSend connector in flow

Was this helpful?

On this page