Topic: Action Mailer Blank E-mail

I am trying to get the Action Mailer to send a mail. i get a e-mail but its empty. the only data is data that was given in the file under Mailers, here is the code:



//notification_mailer.rb
class NotificationMailer < ActionMailer::Base
  default :from => "test@test.com"
 
 
    def bidnotify(user)
    @user = user
    mail(:to => user.email, :subject => "Bid Notification")
    end
end

and

//bitnotify.text.erb
<%= @user.firstname %>,

Thank you

can somebody please help me. or atleast explain why its blank?

Last edited by SoetSout (2011-10-13 07:58:31)