Send auth emails from your own SMTP server
Get started
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.
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.
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.
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:
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.
If a sandbox key is saved for a live environment, all emails Kinde sends to your users go to the key creator’s inbox instead. This includes sign-in codes and password reset codes, so your users won’t be able to sign in. Replace the sandbox key with a live API key before your users rely on this environment.
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.
In Kinde, go to Settings > Environment > Messaging > Email Sender.
Enter a Sender name. This is usually your business name, but might be a specific person.
In Send emails using, select Custom SMTP server. The SMTP settings section opens.
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.
Enter the SMTP details of your email provider:
smtp.lettr.com587 (STARTTLS, recommended) or 465 (TLS/SSL)lettr. This is the same for every Lettr account.Don’t use Lettr’s alternate port 2465. Kinde only treats port 465 as a TLS/SSL port, so connections to 2465 fail.
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.
If the test is successful, select Save.
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.
If sending a test email fails:
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.POST api/emails requests with the user agent SMTP. Open a request with a 400 status to see why Lettr rejected the email.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.If emails stop sending after your setup was working, see Email sending alerts.
For more details, see Lettr’s SMTP documentation.