Class: QueueMailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
app/mailers/queue_mailer.rb

Instance Method Summary collapse

Instance Method Details

#notification(sent_id, to, from, subject, body) ⇒ Object



5
6
7
8
9
10
11
# File 'app/mailers/queue_mailer.rb', line 5

def notification(sent_id, to, from, subject, body)
  qs = QSent.find(sent_id)
  qs.status = "OK"
  qs.save

  mail(:from=>from, :to => to, :subject => subject, :body=>body)
end