I am trying to override Devise's default mailer to implement some custom functionality. Devise is sending the e-mails, but with blank bodies. I stripped my custom Mailer of all it's functionality and made it as bare bone as possible, but to no avail. Here is my code.
# config/initializers/devise.rb
config.mailer = DeviseMailer
# app/mailers/devise_mailer.rb
class DeviseMailer < Devise::Mailer
end
The class you wrote expects its views to be at app/views/devise_mailer/. If you want to use the devise bodies, generate them or add them the view path.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.