Skip to content
  • Integrations
  • Third-party tools

Kinde and Lettr for custom SMTP

Lettr logo

You can configure Kinde to send sign-up, sign-in, one-time passcode (OTP), and password reset emails through Lettr. Users receive these emails from your business’s email address. Each email also appears in Lettr’s API logs with its status.

See Custom email sender (SMTP) for which emails still come from Kinde, and for alerts, editing, and resetting the sender.

  • A Kinde account (Sign up for free)
  • A Lettr account

Lettr configuration

Link to this section

Verify a sending domain in Lettr

Link to this section

Lettr only sends emails from domains you have verified. When you use a live API key, the sender email you set in Kinde must be an address on one of these domains. If you only want to test with a sandbox API key, you can verify your domain later.

See Lettr’s Sending Domains documentation for adding and verifying your domain.

Create an API key in Lettr

Link to this section

You’ll need a Lettr API key to use as the password for authenticating with their SMTP server. Lettr API keys start with lttr_.

You can use an existing API key from Lettr if you have one already. Or you can create a new API key in the Lettr dashboard.

See Lettr’s API Keys documentation for more details.

Test with a sandbox API key (optional)

Link to this section

If you want to try Lettr with Kinde before your domain is verified, you can use a Lettr sandbox API key. Sandbox keys start with lttr_sandbox_. When you use a sandbox key:

  • You don’t need a verified domain.
  • Every email goes to the inbox of the person who created the key, not to the recipient.
  • The sender domain is changed to dev.uselettr.com.

This makes sandbox keys useful for checking your SMTP details with the Send test email button in Kinde. See Lettr’s Sandbox API Keys documentation for more details.

Configure Kinde email sender

Link to this section

If you are setting this up and your production environment is already live, we recommend testing this in a staging or test environment first. Email sender details are set for each environment, so repeat these steps in every environment that will send through Lettr.

  1. In Kinde, go to Settings > Environment > Messaging > Email Sender.

  2. Enter a Sender name. This is usually your business name, but might be a specific person.

  3. In Send emails using, select Custom SMTP server. The SMTP settings section opens.

    Email Sender page with Custom SMTP server selected in the Send emails using dropdown

  4. Enter the Sender email. This is the address your users will receive emails from (e.g., noreply@yourdomain.com). With a live API key, it must be on a domain you verified in Lettr. With a sandbox key, the domain doesn’t need to be verified, because Lettr changes it to dev.uselettr.com.

  5. Enter the SMTP details of your email provider:

    • Server address - smtp.lettr.com
    • Port - 587 (STARTTLS, recommended) or 465 (TLS/SSL)
    • Username - lettr. This is the same for every Lettr account.
    • Password - Use your Lettr API key

    SMTP settings fields on the Kinde Email Sender page

  6. Select Send test email. This sends a test email to the email address you are signed in with. If you’re using a sandbox key, the test email goes to the inbox of the person who created the key instead.

  7. If the test is successful, select Save.

  8. If the test is not successful, check the SMTP details (step 5) and try sending a test email again. If this does not work, see the troubleshooting section below.

If you customize the email sender for an organization, the organization’s sender email must also be on a domain you verified in Lettr.

Troubleshooting

Link to this section

If sending a test email fails:

  • Check the sender domain - An error like 451 4.7.1 Temporary error forwarding message: API error: API returned status 400 usually means the sender email isn’t on a verified Lettr domain. Lettr accepts the username and password, then rejects the email because of the sender address. Check that your domain is verified in Lettr, and that the Sender email in Kinde uses that domain.
  • Check Lettr’s API logs - Emails sent over SMTP appear in Lettr’s API Logs as POST api/emails requests with the user agent SMTP. Open a request with a 400 status to see why Lettr rejected the email.
  • Confirm your SMTP details - Check the server address is smtp.lettr.com, the port is 587 or 465, the username is lettr, and the password is your full API key, including the lttr_ prefix.
  • Wait after repeated failed sign-ins - After 5 failed SMTP sign-in attempts in 5 minutes, Lettr blocks SMTP sign-in for 15 minutes on all ports. This can happen if the API key was copied incorrectly. Fix the password, wait 15 minutes, then send the test email again.

If emails stop sending after your setup was working, see Email sending alerts.

For more details, see Lettr’s SMTP documentation.