|
|
@ -96,14 +96,19 @@ defmodule Explorer.Account.Notifier.Notify do |
|
|
|
|
|
|
|
|
|
|
|
email = Email.compose(notification, address) |
|
|
|
email = Email.compose(notification, address) |
|
|
|
|
|
|
|
|
|
|
|
case Mailer.deliver_now(email, response: true) do |
|
|
|
if email do |
|
|
|
{:ok, _email, response} -> |
|
|
|
case Mailer.deliver_now(email, response: true) do |
|
|
|
Logger.info("--- email delivery response: SUCCESS", fetcher: :account) |
|
|
|
{:ok, _email, response} -> |
|
|
|
Logger.info(response, fetcher: :account) |
|
|
|
Logger.info("--- email delivery response: SUCCESS", fetcher: :account) |
|
|
|
|
|
|
|
Logger.info(response, fetcher: :account) |
|
|
|
{:error, error} -> |
|
|
|
|
|
|
|
Logger.info("--- email delivery response: FAILED", fetcher: :account) |
|
|
|
{:error, error} -> |
|
|
|
Logger.info(error, fetcher: :account) |
|
|
|
Logger.info("--- email delivery response: FAILED", fetcher: :account) |
|
|
|
|
|
|
|
Logger.info(error, fetcher: :account) |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
Logger.info("--- email delivery response: FAILED", fetcher: :account) |
|
|
|
|
|
|
|
Logger.info("Email is not composed (is nil)", fetcher: :account) |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|