Set up email verification with AWS Direct Mail
The official Logto connector for AWS connector for direct mail service.
This guide assumes you have basic understanding of Logto Connectors. For those unfamiliar, please refer to the Connectors guide to get started.
Get started
Amazon SES is a cloud email service provider that can integrate into any application for bulk email sending.
Logto team to call the Amazon Simple Email Service APIs, with the help of which Logto end-users can register and sign in to their Logto account via mail verification code.
Configure a mail service in the AWS service console
Register AWS account
Go to AWS and register an account.
Create a identity
- Go to
Amazon Simple Email ServiceConsole - Create an identity, choose one of the following options
- Create an domain
- Create an email address
Configuration of the connector
- Click your username in the upper right corner of the Amazon console to enter
Security Credentials. If you don't have one, create anAccessKeyand save it carefully. - Complete the settings of the
Amazon Simple Email Serviceconnector:- Use the
AccessKey IDandAccessKey Secretobtained in step 1 to fill inaccessKeyIdandaccessKeySecretrespectively. region: Fill in theregionfield with the region of the identity you use to send mail.emailAddress: The email address you use to send mail, in the format ofLogto\<[email protected]>or\<[email protected]>
- Use the
the following parameters are optional; parameters description can be found in the AWS SES API documentation.
feedbackForwardingEmailAddressfeedbackForwardingEmailAddressIdentityArnconfigurationSetName
Test the Amazon SES connector
You can type in an email address and click on "Send" to see whether the settings work before "Save and Done".
That's it. Don't forget to Enable connector in sign-in experience.
Configure types
| Name | Type |
|---|---|
| accessKeyId | string |
| accessKeySecret | string |
| region | string |
| emailAddress | string (OPTIONAL) |
| emailAddressIdentityArn | string (OPTIONAL) |
| feedbackForwardingEmailAddress | string (OPTIONAL) |
| feedbackForwardingEmailAddressIdentityArn | string (OPTIONAL) |
| configurationSetName | string (OPTIONAL) |
| templates | Template[] |
| Template Properties | Type | Enum values |
|---|---|---|
| subject | string | N/A |
| content | string | N/A |
| usageType | enum string | 'Register' | 'SignIn' | 'ForgotPassword' | 'Generic' |