Class | Sender |
In: |
app/models/sender.rb
|
Parent: | ActionMailer::Base |
# File app/models/sender.rb, line 2 2: def contact(recipient, subject, message, sent_at = Time.now) 3: @subject = subject 4: @recipients = recipient 5: @from = 'arun@rubypython.railsplayground.net' 6: @sent_on = sent_at 7: @body["title"] = 'mail from skid' 8: @body["email"] = 'arun@rubypython.railsplayground.net' 9: @body["message"] = message 10: @headers = {} 11: end