class Sender < ActionMailer::Base def contact(recipient, subject, message, sent_at = Time.now) @subject = subject @recipients = recipient @from = 'arun@rubypython.railsplayground.net' @sent_on = sent_at @body["title"] = 'mail from skid' @body["email"] = 'arun@rubypython.railsplayground.net' @body["message"] = message @headers = {} end end