Class: DropboxMailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
app/mailers/dropbox_mailer.rb

Overview

Copyright © 2008-2013 Michael Dvorkin and contributors.

Fat Free CRM is freely distributable under the terms of MIT license. See MIT-LICENSE file or www.opensource.org/licenses/mit-license.php


Instance Method Summary collapse

Instance Method Details

#dropbox_notification(user, from, email, mediator_links) ⇒ Object



9
10
11
12
13
14
15
16
17
18
19
# File 'app/mailers/dropbox_mailer.rb', line 9

def dropbox_notification(user, from, email, mediator_links)
  I18n.locale = Setting.locale
  @mediator_links = mediator_links.join("\n")
  @subject        = email.subject
  @body           = email.body_plain

  mail subject: I18n.t(:dropbox_notification_subject, subject: email.subject),
       to: user.email,
       from: from,
       date: Time.now
end