app/mailers/mailboxer/message_mailer.rb
def new_message_email(message,receiver)
    @message  = message
    @receiver = receiver
    set_subject(message)
    mail :to => receiver.send(Mailboxer.email_method, message),
         :subject => t('mailboxer.message_mailer.subject_new', :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
Sends an email for indicating a new message for the receiver
def new_message_email(message,receiver)
    @message  = message
    @receiver = receiver
    set_subject(message)
    mail :to => receiver.send(Mailboxer.email_method, message),
         :subject => t('mailboxer.message_mailer.subject_new', :subject => @subject),
         :template_name => 'new_message_email.html.erb'
  end
def new_message_email ( message , receiver ) @message = message @receiver = receiver set_subject ( message ) mail :to => receiver . send ( Mailboxer . email_method , message ) , :subject => t ( 'mailboxer.message_mailer.subject_new' , :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
message
receiver