Sha256: 51e35705688047264c2a1ff01be61a9ff2b0b41a2b1ede1aaa18794d171d7df8

Contents?: true

Size: 357 Bytes

Versions: 9

Compression:

Stored size: 357 Bytes

Contents

class Sendmail < ActionMailer::Base
  
  def form(params, meta, template)
    subject meta[:subject]
    from  set_from(params, meta)
    recipients meta[:recipients]
    body  :data => params
    content_type "text/html"
    template template
  end

  private

  def set_from(params, meta)
    params[:email].nil? ? params[:email] : meta[:from]
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
qcms-2.1.0 app/models/sendmail.rb
qcms-2.0.0 app/models/sendmail.rb
qcms-1.3.10 app/models/sendmail.rb
qcms-1.3.9 app/models/sendmail.rb
qcms-1.3.8 app/models/sendmail.rb
qcms-1.3.7 app/models/sendmail.rb
qcms-1.3.6 app/models/sendmail.rb
qcms-1.3.5 app/models/sendmail.rb
qcms-1.3.3 app/models/sendmail.rb