jtormey

jtormey

Resend - A library for the email service for developers

Hey Elixir community!

I’ve been using Resend.com as my company’s transactional email service since the beginning, or about 6 months. I’d never been happy with transactional email providers until Resend, they’ve built a great product for developers as emails deliver almost instantly, the service is dead simple to use, and their API is small and straightforward. They also happen to be the creators of React Email.

I build and maintain the Elixir library for Resend, and so wanted to share it here.

It covers their full API (as of now), includes a Livebook for easy experimentation, and a Swoosh adapter for drop-in support in Phoenix applications.

This config is all it takes to make Resend your app’s email service:

config :my_app, MyApp.Mailer, adapter: Resend.Swoosh.Adapter, api_key: "re_123456789"

Though if you’re sending emails directly, that’s easy to do too:

# Replace with your API key
client = Resend.client(api_key: "re_123456789")

# Replace `:to` and `:from` with valid emails
Resend.Emails.send(client, %{
  to: "me@example.com",
  from: "myapp@example.com",
  subject: "Hello!",
  text: "👋🏻"
})

Hopefully this is helpful to anyone that wants a simple email service that can be set up in just a few minutes. Thanks!

https://github.com/elixir-saas/resend-elixir

And you can view the docs here:

Most Liked

jtormey

jtormey

Good call! I just contributed to Swoosh, to have it added as a third-party adapter in the README:

https://github.com/swoosh/swoosh?tab=readme-ov-file#third-party-adapters

Where Next?

Popular in Announcing Top

KronicDeth
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine) This is a plugin that adds support for Elixir to JetBrains IntelliJ...
289 36654 110
New
zorbash
I created Kitto a framework for dashboards inspired by Dashing. The distributed characteristics of Elixir and the low memory footprint...
New
danschultzer
In short Plug n’ play OAuth 2.0 provider library. Just set up a resource owner schema with Ecto (your user schema), install the dependen...
New
versilov
Could not wait for the missing Elixir ML libraries to appear, so, I wrote one myself, taking https://github.com/sdwolfz/exlearn as a foun...
New
wfgilman
I’ve cleaned up and open sourced three financial libraries I was using for my company. They are bindings for the APIs of these three comp...
New
josevalim
Hi everyone, We would like to announce that Plataformatec is working on a new MySQL driver called MyXQL. Our goal is to eventually integ...
New
martinthenth
Hello everybody :wave: Recently, some of my colleagues talked about database ids and uuids and their problems, and I remembered the pain...
New

Other popular topics Top

nobody
Hi! In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
New
JeremM34
Hello, how can I check the Phoenix version ? Thanks !
New
sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New
TunkShif
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
274 42533 114
New

We're in Beta

About us Mission Statement