Postmark connector implementation.
npm install @logto/connector-postmarkLogto connector for Postmark email service.
Postmark is a mail platform for transactional and marketing email. We can use its email sending function to send a _verification code_.
Create a new account at Postmark website. You may skip this step if you've already got an account.
Fill out the serverToken field with the Server Token you find under settings for your
server in Postmark.
Fill out the fromEmail field with the senders' _From Address_.
In order to enable full user flows, templates with usageType Register, SignIn, ForgotPassword and Generic are required
Here is an example of Postmark connector template JSON.
``jsonc``
[
{
"usageType": "Register",
"templateAlias": "logto-register"
},
{
"usageType": "SignIn",
"templateAlias": "logto-sign-in"
},
{
"usageType": "ForgotPassword",
"templateAlias": "logto-forgot-password"
},
{
"usageType": "Generic",
"templateAlias": "logto-generic"
},
]
You can type in an email address and click on "Send" to see whether the settings can work before "Save and Done".
That's it. Don't forget to Enable connector in sign-in experience
| Name | Type |
|-------------|-------------------|
| serverToken | string |
| fromEmail | string |
| Template Properties | Type | Enum values |
|---------------------|-------------|------------------------------------------------------|
| usageType | enum string | 'Register' \| 'SignIn' \| 'ForgotPassword' \| 'Generic' |
| templateAlias | string | N/A |