Sha256: 39d62c7930480ca68596edbcb130370547101ca34795bfa9c5be3b45a7ac36af

Contents?: true

Size: 524 Bytes

Versions: 26

Compression:

Stored size: 524 Bytes

Contents

module Spina
  class InquiryMailer < ActionMailer::Base
    layout 'spina/email'

    def inquiry(inquiry)
      @inquiry = inquiry
      @current_account = Account.first

      # attachments.inline['logo.jpg'] = LogoUploader.new.read(@current_account.logo) if @current_account.logo.url

      mail( 
        to: "\"#{@current_account.name}\" <#{ @current_account.email }>", 
        from: "\"#{@inquiry.name}\" <#{@inquiry.email}>",
        subject: @inquiry.message.truncate(97, separator: ' ')
      )
    end

  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
spina-0.8.3 app/mailers/spina/inquiry_mailer.rb
spina-0.8.2 app/mailers/spina/inquiry_mailer.rb
spina-0.8.1 app/mailers/spina/inquiry_mailer.rb
spina-0.8.0 app/mailers/spina/inquiry_mailer.rb
spina-0.7.3 app/mailers/spina/inquiry_mailer.rb
spina-0.7.2 app/mailers/spina/inquiry_mailer.rb
spina-0.7.0 app/mailers/spina/inquiry_mailer.rb
spina-0.6.29 app/mailers/spina/inquiry_mailer.rb
spina-0.6.28 app/mailers/spina/inquiry_mailer.rb
spina-0.6.27 app/mailers/spina/inquiry_mailer.rb
spina-0.6.26 app/mailers/spina/inquiry_mailer.rb
spina-0.6.25 app/mailers/spina/inquiry_mailer.rb
spina-0.6.24 app/mailers/spina/inquiry_mailer.rb
spina-0.6.23 app/mailers/spina/inquiry_mailer.rb
spina-0.6.22 app/mailers/spina/inquiry_mailer.rb
spina-0.6.21 app/mailers/spina/inquiry_mailer.rb
spina-0.6.20 app/mailers/spina/inquiry_mailer.rb
spina-0.6.19 app/mailers/spina/inquiry_mailer.rb
spina-0.6.18 app/mailers/spina/inquiry_mailer.rb
spina-0.6.17 app/mailers/spina/inquiry_mailer.rb