For the record, here’s how I’ve done it.
To send emails, I used the mailgun package. The setup is described in the phoenix docs section “Sending Email with Mailgun”
To add the confirmation logic, I started a new phoenix application with phauxth (with mix phauxth.new --confirm
), which is the openmaize library for Phoenix 1.3, just to see the code and to test it. Then I installed the phauxth package to my ongoing project and replicated the code needed just for the confirmation flow.
Thank you all for all the help!