Adding email to phoenix

I am using Phoenix 1.5.7 and deps.get bamboo & gmail adaptor

I obtained the json google credential

I tested on localhost and users get confirmation link in the console

So it is working

I did not get email sent or is it not suppose to work in dev mode

Thanks.

Hello and welcome,

You are not suppose to send real email in dev, and this is set by configuring Mailer to use Bamboo.LocalAdapter in config/dev.exs.

But You can preview email in dev, if You add a custom route…

  if Mix.env() == :dev do
    forward "/sent_emails", Bamboo.SentEmailViewerPlug
  end
2 Likes