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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With