logto icon indicating copy to clipboard operation
logto copied to clipboard

feature request: Support for Resend Email.

Open yenharvey opened this issue 1 year ago β€’ 5 comments

What problem did you meet?

Not support Resend email. image

Describe what you'd like Logto to have

yenharvey avatar Nov 05 '24 05:11 yenharvey

Missing it as well. Has someone managed to maybe connect Resend using smtp? I was not able to do so for some unknown reasons

christian-draeger avatar Nov 25 '24 12:11 christian-draeger

Also would love to have a native resend integration for Logto. Have a hard time setting this up via SMTP, their seems to be a mismatch between the default of Resend and the default options for Logto.

wesselhuising avatar Dec 06 '24 08:12 wesselhuising

Did you manage to get it running via smtp config? I still not have it running πŸ˜•

christian-draeger avatar Dec 06 '24 19:12 christian-draeger

Did you manage to get it running via smtp config? I still not have it running πŸ˜•

Haha, I only used Resend’s API to send emails before, never noticed it had an SMTP config option. I switched to Aliyun Direct Mail Push later, and it seems pretty stable! 😊

yenharvey avatar Dec 07 '24 16:12 yenharvey

Did you manage to get it running via smtp config? I still not have it running πŸ˜•

Hi guys, until we have the integrated connector available, the alternative is to use Resend configured as SMTP. I've successfully tested it, and I'm sharing the configuration details below if you'd like to try replicating it in your applications:

  1. Go to your Resend configuration panel, in the SMTP tab.
  • Copy the host suggested by Resend (something like smtp.resend.com).

  • Copy port 2465 to force the use of encrypted/TLS connections.

  1. Go to API Keys in Resend, create a new key to use with Logto and copy its value.
  2. In the Logto admin console, click on Connector and then on Add Connector.
  3. Paste the host and port indicated above.
  4. Change the Secure option to true.
  5. In Custom Headers, include the following code: (please, complete with the code)
{
  "Content-Type": "application/json"
}
  1. In Auth, keep the type as "login". As user, use "resend" and in pass use your Resend API key."
{
  "pass": "<Resend API Key>",
  "type": "login",
  "user": "resend"
}

Enter your From Email, Reply Email, and customize the templates. After configuration, test your connection and enjoy! :sunglasses:

joaofaveri avatar Mar 21 '25 15:03 joaofaveri