Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Devise is sending e-mails with blank bodies when I override it's mailer

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
like image 962
Arjan Avatar asked Apr 04 '12 14:04

Arjan


1 Answers

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.

like image 94
Sairam Avatar answered Sep 22 '22 15:09

Sairam