resend / resend-go

Resend's Official Go SDK
https://resend.com
MIT License
98 stars 9 forks source link

Request with http instead of SMTP #14

Closed LiuQhahah closed 1 year ago

LiuQhahah commented 1 year ago

From the code https://github.com/resendlabs/resend-go/blob/main/emails.go#L150

req, err := s.client.NewRequest(http.MethodPost, path, convertedParams) I want to know the reason that sending email with HTTP, instead of SMTP. Thanks

drish commented 1 year ago

Hey @LiuQhahah the Resend API is primarily an HTTP based API. We have just recently added support for SMTP, however the core of the functionality of the SDKs are based on their HTTP endpoints, sending through SMTP depends is basically a matter of configuring your SMTP client of choice to use Resend credentials.

Hope that answers your question !