Send Your Own Emails

If you'd prefer to have more control over the transactional emails sent by PropelAuth, you can choose to send emails from your own email provider (Sendgrid, Mailchimp, Postmark, etc). You can also choose to send other forms of communication, such as SMS or push notifications, from your own provider.

By default PropelAuth will send all transactional emails for you. For example:

  1. User requests a reset password email
  2. PropelAuth sends a reset password email to the user.

When sending the email yourself, the flow would change to:

  1. User requests a reset password email.
  2. PropelAuth send you a webhook with all the necessary information.
  3. You send the reset password email to the user.

Configuration

To start sending emails from your own provider, go to the Emails page in your PropelAuth dashboard. There, you'll find a section titled Send Emails from Your Own Provider.

Every email in this section will be set to PropelAuth by default. Once you switch the setting to Webhook, PropelAuth will no longer send the email on your behalf. Fortunately, you can configure these settings per environment, allowing you to test in your Test environment before moving it to Prod.

When you switch the email to Webhook, PropelAuth will send a webhook with all the necessary information for you to send the email from your own provider. Webhooks are sent immediately, so you can be sure that your users will receive their emails quickly, and they are retried if they fail.

To configure webhooks, head over to the Integrations page in your PropelAuth Dashboard and click on Webhooks. PropelAuth offers a lot of webhook events to choose from, and you'll want to focus on the events that start with email, such as email.reset_password.

Emails

This is a full list of emails that can be sent either via PropelAuth or via your custom provider.

Note that action_url is a variable that is used in some emails to provide a link to the user. For example, the email.confirmation_email email contains an action_url that links to the confirmation page.

EmailTriggered ByWebhookVariables
Account LockedToo many incorrect login attemptsemail.account_lockedemail
Confirmation EmailSigning up when email confirmation is required or the user asks to resend a confirmation emailemail.confirmation_emailemail, action_url
Merge Account with SSOLogging into an acccount with a new signin method. Only required if the SSO provider doesn't validate emails.email.merge_account_with_ssoemail, action_url, external_provider
MFA Account LockedToo many incorrect MFA attemptsemail.mfa_account_lockedemail
Organization InviteBeing invited to an organizationemail.org_inviteemail, action_url, org_name
Org Now Requires 2FA2FA is now required for the specified organization. The user receiving the email has not yet set up 2FA.email.org_now_requires_2faemail, action_url, org_name, require_2fa_by
Passwordless LoginLogging in via magic linkemail.passwordless_loginemail, action_url
Reset PasswordRequesting a password resetemail.reset_passwordemail, action_url
Update EmailUser confirming their new email addressemail.update_emailemail, action_url, current_email_address, new_email_address
Waitlist User ConfirmationSigning up for a waitlist. The action URL will confirm the user's email addressemail.waitlist_user_invitationemail, action_url
Waitlist User InvitationInviting a user from a waitlist. The action URL will accept the invitation and create an accountemail.waitlist_user_confirmationemail, action_url

Example Emails

Here are a few examples of transactional emails.

Confirmation Email

Confirmation Email

Reset Password

Reset Password

Organization Invite

Organization Invite