princemaple
Swoosh - Email client
Hi all,
Looks like the original authors of Swoosh never posted it here.
I just released Swoosh 1.1.0, and here I am.
1.1 adds Recipient Protocol with @derive
The Recipient Protocol enables you to easily make your structs compatible with Swoosh functions.
defmodule MyUser do
@derive {Swoosh.Email.Recipient, name: :name, address: :email}
defstruct [:name, :email, :other_props]
end
Now you can directly pass %MyUser{} to from , to , cc , bcc , etc. See Swoosh.Email.Recipient for more details.
https://hexdocs.pm/swoosh/Swoosh.Email.Recipient.html
Po Chen
Most Liked
princemaple
princemaple
Swoosh 1.4 released with a built-in Finch-based API client. (it has always had a hackney-based one)
Now you can pick either hackney or finch.
If you implement a custom API client, you can use anything else 
princemaple
1.5 released with Telemetry support.
princemaple
Not really. A Finch instance can handle multiple pools. Unless message passing is becoming the bottleneck (not likely), you shouldn’t have to start multiple of them.
From Finch documentation:
{Finch,
name: MyConfiguredFinch,
pools: %{
:default => [size: 10],
"https://hex.pm" => [size: 32, count: 8]
}}
wmnnd
Great work! 








