class UserMailer < ActionMailer::Base
def reminder(user)
@subject = 'Your login information at KnowledgeEngine.com'
@body = {}
#Give body access to the user information.
@body["user"] = user
@recipients = user.email
@from = 'KnowldegeEngine <do-not-reply@knowledgeengine.com>'
end
def message(mail)
subject mail[:message].subject
from 'KnowledgeEngine <do-not-reply@knowledgeengine.com>'
recipients mail[:recipient].email
body mail
end
end
diz is the code for UserMailer..
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment