resend

Package VersionHex Docs

gleam add resend@1
import resend
import resend/emails.{create_email, send_email, with_html}
pub fn main() {
let client =
resend.Resend(api_key: "// Replace this with your resend api key")
create_email(
client:,
from: "from@example.com",
to: ["to@example.com"],
subject: ":)",
)
|> with_html("<p>Email sent</p>")
|> send_email()
}

Further documentation can be found at https://hexdocs.pm/resend.

Development

gleam run # Run the project
gleam test # Run the tests