These are chat archives for mailboxer/mailboxer

30th
Jan 2017
Ben Briggs
@ben-eb
Jan 30 2017 13:56

Hi guys, I'm wondering how I can preview Mailboxer emails using Rails' email preview functionality? I'm not too sure on how to handle this. :)

# spec/mailers/previews/devise/mailer_preview.rb
class Devise::MailerPreview < ActionMailer::Preview

  def confirmation_instructions
    Devise::Mailer.confirmation_instructions(User.first, "faketoken")
  end

  def reset_password_instructions
    Devise::Mailer.reset_password_instructions(User.first, "faketoken")
  end
end

^ this would be how I would do it with Devise