Sha256: b7a3c1f82417ae3ae9a14e171b21ac1fc3ebf0be836f0774188fe61f792ef990
Contents?: true
Size: 540 Bytes
Versions: 76
Compression:
Stored size: 540 Bytes
Contents
class Mailer < ActionMailer::Base REPLY_TO = "reply-to@example.com" TO = "to@example.com" FROM = "from@example.com" SUBJECT = "SUBJECT" BODY = "BODY" if Rails.version >= "3" def email mail( :from => FROM, :reply_to => REPLY_TO, :to => TO, :subject => SUBJECT ) do |format| format.text { render :text => BODY } end end else def email recipients TO reply_to REPLY_TO from FROM subject SUBJECT body BODY end end end
Version data entries
76 entries across 76 versions & 1 rubygems