app/mailers/notifications_mailer.rb
# Subject can be set in your I18n file at config/locales/en.yml
# with the following lookup:
#
#   en.notifications_mailer.third.subject
#
Subject can be set in your I18n file at config/locales/en.yml
with the following lookup.


Subject can be set in your I18n file at config / locales / en . yml with the following lookup .
def third(debt, user, options = {})
    fail if user.nil? 
    fail if debt.nil? 
    @debt = debt
    @user = user
    add_return_receipt headers, @user.email
    @date_first_email_sent = options[:date_first_email_sent]
    @display_attachments = options[:display_attachments]
    add_signature!
    mail(from: @user.email,
         to:   @debt.debtor.email,
         cc:   @debt.debtor.contact_person_email,
         bcc:  @user.email,
         subject: "Tercera Notificación", &:html)
  end
def third ( debt , user , options = { } ) fail if user . nil? fail if debt . nil? @debt = debt @user = user add_return_receipt headers , @user . email @date_first_email_sent = options [ :date_first_email_sent ] @display_attachments = options [ :display_attachments ] add_signature! mail ( from : @user . email , to : @debt . debtor . email , cc : @debt . debtor . contact_person_email , bcc : @user . email , subject : "Tercera Notificación", : html) end
Subject can be set in your I18n file at config/locales/en.yml
with the following lookup:
Subject can be set in your I18n file at config / locales / en . yml with the following lookup :
# Guards: # user is definded # but not debt.
debt
user
options