feat: add smtp settings
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
c4135308e6
commit
a4f3aa5d6f
23 changed files with 2424 additions and 152 deletions
|
|
@ -37,9 +37,10 @@ defmodule Mv.MailerTest do
|
|||
assert {:ok, _} = Mailer.send_test_email(to_email)
|
||||
|
||||
assert_email_sent(fn email ->
|
||||
{_name, from_email} = Mailer.mail_from()
|
||||
from_addresses = Enum.map(email.from, &elem(&1, 1))
|
||||
from_email in from_addresses
|
||||
{_name, expected_from} = Mailer.mail_from()
|
||||
# email.from is a single {name, address} tuple in Swoosh, not a list
|
||||
{_name, actual_from} = email.from
|
||||
actual_from == expected_from
|
||||
end)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue