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 <[email protected]>'
end
def message(mail)
subject mail[:message].subject
from 'KnowledgeEngine <[email protected]>'
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.