ポイント 箇条書きをすると以下の通り deviseがconfirmed_atをsaveするときにメールを送る そのために、deviseのconfirmメソッドをオーバーライドする(※ハマリどころ: 後述) メール送付は ActionMailer で。 前提として、DeviseはUserモデルに紐付いているものとします。 ActionMailerを送るための仕組み 設定、メーラクラス、テンプレートを作ります。 development環境はとりあえずgmailを使いました SampleApplication::Application.configure do ・・・ config.action_mailer.delivery_method = :smtp config.action_mailer.smtp_settings = { address: 'smtp.gmail.com', port