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