Email connectors
An email connector integrates your email delivery service with Logto to enable secure user verification through email. Once configured, you can send one-time passwords (OTPs) for user sign-up, sign-in, password reset, account linking, member invitations and high-risk operation validation.
Choose your email connector
Logto offers three types of email connector options:
Free Logto Email Service (Cloud only)
This built-in email service option is ideal for getting started quickly for both testing and production. It eliminates the need for third-party integrations; and offers free, reliable email delivery. Simply customize your basic branding for the pre-designed email templates.
The Logto Email Service connector now offers branded customization capabilities, including logo, company information, and sender name.
- Emails will be sent from the fixed address
[email protected]
. - You can not add link or any other custom content to emails.
Official connector for Logto Email Service.
Popular email providers
Connect with your preferred email service provider (ESP) using Logto's step-by-step guides.
These options allow you to fully customize your email template, sender name, etc., to best serve your branding.
We provide out-of-the-box support for the following email service providers:
The official Logto connector for AWS connector for direct mail service.
The official Logto connector for Mailgun email service.
The official Logto connector for SendGrid email service.
The official Logto connector for Aliyun connector for direct mail service.
Logto connector for Postmark email service.
Customize your email connector
If none of the above solutions meet your needs, you can also choose to connect to your desired email service using Simple Mail Transfer Protocol (SMTP).
The official Logto connector for SMTP.
If you already have your own email service and are not eligible for using an SMTP connection, we also provide a "HTTP email connector".
When it needs to send an email, it sends an API call to the configured endpoint
to complete the email-dependent auth flow. Note that to prevent auth flow errors, the configured endpoint needs to return a 200 response after receiving the WebHook to inform Logto that it has received the notification to send the email. In this case, you need to monitor your own email service to ensure successful delivery.
The official Logto connector for HTTP email.
You may notice that only one email connector can be added.
When you already have an email connector, you can only select "Change email connector". When performing this operation in the console, it takes effect immediately once saved, so please be sure to test your configuration before saving.
To ensure the stability of your service, Cloud users can create a dev tenant for the development environment. After testing the configuration in the development environment, "migrate" the configuration to production, and then save the setup.
Enable email sign-up or sign-in
Once you successfully add the email connector and complete the configuration, you can enable sign-in and sign-up configurations that rely on email + verification code, according to your business needs.
- Navigate to: Console > Sign-in experience > Sign-up and sign-in
- Set sign-up methods: Choose "Email address" or "Email address or phone number" as the sign-up identifier. Note: email verification is currently mandatory during sign-up.
- Set sign-in methods: The chosen sign-up identifier automatically becomes a sign-in method. Click "Add another" for additional sign-in options.
- Save Changes and Test: Click "Save changes" to implement the new sign-in experience. Remember to use the "Live preview" to test the functionality.
Because our configurations take effect immediately, deleting existing email connector can affect end-users' normal login and registration processes.
For example, if the sign-in identifier includes "email + verification code" combination, deleting the existing email connector will prevent users from receiving verification codes via email and will result in an error in the sign-in flow.
Please be aware of the potential risks when operating on connectors.
FAQs
How to customize the email sender name?
We're still working on more connectors. If you require further options, just let us know your needs in Discord and file a Feature Request on GitHub. If you need further assistance, you can also contact us via email.
For contributors, we provide an easy-to-extend connector creation method, allowing you to customize your own connector based on your specific scenarios. You are always welcomed to submit a pull request to Logto, so that others in the community may also benefit from your work.
How can I restrict IP addresses for email requests in Logto email connectors?
One workaround is to use the Logto HTTP email connector.
Implement an API endpoint on your server that calls the relevant email service, and trigger this API endpoint through the Logto HTTP email connector. In this way, you will have complete control over the IP address of your API endpoint and can add the corresponding IP addresses to the whitelist in the email service provider's configuration.