デフォルトで
lib/supac/accounts/user_notifier.ex
# ...
# Delivers the email using the application mailer.
defp deliver(recipient, subject, body) do
email =
new()
|> to(recipient)
|> from({"MyApp", "contact@example.com"}) # <- cause of error
|> subject(subject)
|> text_body(body)
with {:ok, _metadata} <- Mailer.deliver(email) do
{:ok, email}
end
end
# ...
となっているので
lib/supac/accounts/user_notifier.ex
# ...
# Delivers the email using the application mailer.
defp deliver(recipient, subject, body) do
email =
new()
|> to(recipient)
|> from({"MyApp", "hoge@gmail.com"}) # <- fixed
|> subject(subject)
|> text_body(body)
with {:ok, _metadata} <- Mailer.deliver(email) do
{:ok, email}
end
end
# ...
などと有効なメールアドレスに変更することで解消できます。