class Contactmailer < ActionMailer::Base def send_mail_to_contact(subject, body, to, from, sent_at = Time.now) @subject = subject @body = body @recipients = to @from = from @sent_on = sent_at @headers = {} end end