“Rails consoleをbin/rails cとかで起動して1行で決める ActionMailer::Base.mail(to: "to@example.com", from: "from@example.jp", subject: "題名", body: "本文").deliver_now”

kent-where-the-light-iskent-where-the-light-is のブックマーク 2017/03/01 11:28

その他

このブックマークにはスターがありません。
最初のスターをつけてみよう!

Rails consoleでActionMailerを使ってメールを送信テストする方法 - Qiita

    ActionMailer::Base.mail(to: "to@example.com", from: "from@example.jp", subject: "題名", body: "文").deliver_now 余談 メール送信周りのバグの発生原因の切り分けなんかで使えるはず。とりあえずメールが...

    \ コメントが サクサク読める アプリです /

    • App Storeからダウンロード
    • Google Playで手に入れよう