class <%= class_name -%>Mailer < ActionMailer::Base default :from => "no-reply@#{host}" def forgot_password(<%= name.underscore %>, key) @<%= name.underscore %>, @key = <%= name.underscore %>, key mail( :subject => "#{app_name} -- forgotten password", :to => <%= name.underscore %>.email_address ) end <% if invite_only? -%> def invite(<%= name.underscore %>, key) @<%= name.underscore %>, @key = <%= name.underscore %>, key mail( :subject => "Invitation to #{app_name}", :to => <%= name.underscore %>.email_address ) end <% elsif options[:activation_email] %> def activation(<%= name.underscore %>, key) @<%= name.underscore %>, @key = <%= name.underscore %>, key mail( :subject => "#{app_name} -- activate", :to => <%= name.underscore %>.email_address ) end <% end -%> end