app/mailers/mailboxer/notification_mailer.rb
#Sends an email for indicating a new message for the receiver
Sends an email for indicating a new message for the receiver
Sends an email for indicating a new message for the receiver
def new_notification_email(notification, receiver)
    @notification = notification
    @receiver     = receiver
    set_subject(notification)
    mail :to => receiver.send(Mailboxer.email_method, notification),
         :subject => t('mailboxer.notification_mailer.subject', :subject => @subject),
         :template_name => 'new_message_email.html.erb'
  end
def new_notification_email ( notification , receiver ) @notification = notification @receiver = receiver set_subject ( notification ) mail :to => receiver . send ( Mailboxer . email_method , notification ) , :subject => t ( 'mailboxer.notification_mailer.subject' , :subject => @subject ) , :template_name => 'new_message_email.html.erb' end
Sends an email for indicating a new message for the receiver
Sends an email for indicating a new message for the receiver
notification
<not_specific>
receiver
<not_specific>