Sha256: 8a2e6259c6ab798e1aa23e4d69e62e9118681a203453dfc8b6aec1388c75fcd6

Contents?: true

Size: 591 Bytes

Versions: 3

Compression:

Stored size: 591 Bytes

Contents

class Spree::CloudMailer < ActionMailer::Base
  default :from => Spree::MailMethod.current.try(:preferred_mails_from) || ''

  def mail_to_cloud(object, mail)
    @object = object
    @mail = mail
    opts = {}

    if mail.hide_recipients && Spree::Config[:hidden_recipients_to_address]
      opts[:to] = Spree::Config[:hidden_recipients_to_address]
      opts[:bcc] = mail.recipient_email
    else
      opts[:to] = mail.recipient_email
    end
    default_url_options[:host] = mail.host
    opts[:subject] =  mail.subject
    opts[:reply_to] = mail.sender_email

    mail(opts)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spree_multi_share-2.2.2.1 app/mailers/spree/cloud_mailer.rb
spree_multi_share-1.3.3 app/mailers/spree/cloud_mailer.rb
spree_multi_share-1.3.2 app/mailers/spree/cloud_mailer.rb