A website template with lots of features, built with ruby on rails.

send_contact_message.rb 348B

123456789101112131415
  1. class SendContactMessage
  2. @queue = :send_contact_message_queue
  3. def self.perform(id)
  4. # Get contact message
  5. msg = ContactMessage.find_by_id(id)
  6. # Get webmaster email addresss
  7. to_address = Info.first.contact_email
  8. # Send Contact Message Email
  9. UserMailer.contact_message(msg, to_address).deliver
  10. end
  11. end