Sha256: da04ab13ae0d6606c124ceb6eae3cbef588fbb933d291325bf9c2b3398642df6

Contents?: true

Size: 711 Bytes

Versions: 15

Compression:

Stored size: 711 Bytes

Contents

# Copyright (c) 2008-2013 Michael Dvorkin and contributors.
#
# Fat Free CRM is freely distributable under the terms of MIT license.
# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
#------------------------------------------------------------------------------
class DropboxMailer < ActionMailer::Base
  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
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
fat_free_crm-0.14.2 app/mailers/dropbox_mailer.rb
fat_free_crm-0.15.2 app/mailers/dropbox_mailer.rb
fat_free_crm-0.16.4 app/mailers/dropbox_mailer.rb
fat_free_crm-0.14.1 app/mailers/dropbox_mailer.rb
fat_free_crm-0.15.1 app/mailers/dropbox_mailer.rb
fat_free_crm-0.16.3 app/mailers/dropbox_mailer.rb
fat_free_crm-0.16.2 app/mailers/dropbox_mailer.rb
fat_free_crm-0.16.1 app/mailers/dropbox_mailer.rb
fat_free_crm-0.16.0 app/mailers/dropbox_mailer.rb
fat_free_crm-0.15.0 app/mailers/dropbox_mailer.rb
fat_free_crm-0.15.0.beta.2 app/mailers/dropbox_mailer.rb
fat_free_crm-0.15.0.beta app/mailers/dropbox_mailer.rb
fat_free_crm-0.14.0 app/mailers/dropbox_mailer.rb
reduced_fat_crm-0.15.0.beta app/mailers/dropbox_mailer.rb
reduced_fat_crm-0.14.0 app/mailers/dropbox_mailer.rb