How to access application_helper methods in mailer templates

Hi,

I am not able to access application_helper methods in my mailer templates. It throws out error saying method not defined. I was assuming all templates under views should have access to application helper methods, but it is not the case. Any solution?

You can always put the methods in config/environment.rb.

Add helper:application to the top of your Mailer class

for example:

class MessagingNotifier < ActionMailer::Base
helper :application


end