Re: Email section

Manish Belsare
Fri, 12 Mar 2010 17:03:12 -0000

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-4UTkxXXXxxC8lTQ9+LR4oUEOCMrvLtNR@public.gmane.org>''
 end

def message(mail)
  subject     mail[:message].subject
  from        ''KnowledgeEngine
<do-not-reply-4UTkxXXXxxC8lTQ9+LR4oUEOCMrvLtNR@public.gmane.org>''
  recipients mail[:recipient].email
  body        mail
end

end

diz is the code for UserMailer..