Class: Spina::InquiryMailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- Spina::InquiryMailer
- Defined in:
- app/mailers/spina/inquiry_mailer.rb
Instance Method Summary collapse
Instance Method Details
#inquiry(inquiry) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'app/mailers/spina/inquiry_mailer.rb', line 5 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..truncate(97, separator: ' ') ) end |