gleesend

Package Version Hex Docs

gleam add gleesend@1
import gleesend
import gleesend/emails.{create_email, send_email, with_html}

pub fn main() {
  let client =
    gleesend.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
Search Document