loading
Preparing LoginRadius developer resources
Mission: Help enterprises accelerate digital transformation with our fully-managed Customer IAM technology.
Skip to main content

Custom HTTP Mailer Provider

LoginRadius allows developers to configure and integrate a Custom HTTP Mailer Provider. This functionality enables email delivery through HTTP-based APIs instead of traditional SMTP, so emails can be routed through internal notification services or modern providers such as Brevo, Resend, or Mailgun.

By supporting HTTP-based delivery, developers can align their email strategy with the same flexibility already available for SMS, the configuration process for the Custom HTTP Mailer Provider mirrors the process used to configure custom SMS/text providers and templates. You can customize authentication types, headers, body formats, and delivery endpoints to match your provider's API specifications, giving you full control over how emails are constructed and sent.

Key Features

The Custom HTTP Mailer Provider configuration offers flexibility and control, enabling seamless integration with various HTTP-based email services. Below are the key capabilities that support scalable email communication through the Admin Console.

  • Integrate any third-party HTTP-based email provider, or an internal notification service, of your choice.
  • Support multiple authentication methods: Basic Auth, Bearer Token, or No Authentication.
  • Customize request headers, body formats, and query parameters.
  • Use the same template types and placeholders already supported for SMS, for consistent, dynamic email generation.
  • Fully replaces SMTP for all email-related events once configured.

Use Cases

These examples highlight practical scenarios where integrating a Custom HTTP Mailer Provider can enhance email delivery and support modern, API-driven communication requirements.

  • Send transactional emails through modern HTTP-based providers like Brevo, Resend, or Mailgun.
  • Route outgoing emails through an internal enterprise notification service.
  • Standardize provider management by using the same HTTP-based configuration model already used for SMS.
  • Leverage analytics by including custom headers or query parameters for reporting.

Configure a Custom HTTP Mailer Provider

Set up your preferred HTTP-based email service with the Admin Console by following the steps below.

  1. Navigate to Admin Console > Branding > Email-SMS-Provider.

  2. Select Custom HTTP Mailer Provider from the provider dropdown menu.

You'll need to fill in specific fields to complete the integration of your custom provider.

This API endpoint URL is used to send email requests via your provider.

  • Enter the endpoint URL provided by your email provider or internal notification service.
  • This URL varies by provider. Refer to the provider's documentation or use a sample cURL request to identify it.

Example cURL Request:

curl --location --request POST 'https://api.provider.com/send' \
--header 'Authorization: Bearer [Token]' \
--header 'Content-Type: application/json' \
--data-raw '{
"to": "#receiver",
"from_name": "#from_name",
"from_email": "#from_email",
"subject": "#subject",
"text": "#body",
"html": "#html_body"
}'

Note:

  • Once a Custom HTTP Mailer Provider is configured, it entirely replaces SMTP for all email-related events; it does not run alongside SMTP as an additional channel. Events such as Forgot Password, Reset Password, Welcome Email, and Email Added, which were previously triggered via SMTP, are now sent through the configured HTTP mailer.
  • The Custom HTTP Mailer Provider supports the exact same template types and placeholders currently supported for SMS: #receiver, #subject, #body, #html_body, #from_name, and #from_email.

Once all required fields are filled:

  • Save your settings.
  • Test the integration to confirm successful email delivery across all supported events.

Feel free to contact the LoginRadius Support team if you need assistance.