hey,
i get this message when i want to send a mail
5.3.3 AUTH not available
c:/ruby/lib/ruby/1.8/net/smtp.rb:680:in check_response' c:/ruby/lib/ruby/1.8/net/smtp.rb:582:in
auth_login’
c:/ruby/lib/ruby/1.8/net/smtp.rb:581:in critical' c:/ruby/lib/ruby/1.8/net/smtp.rb:581:in
auth_login’
c:/ruby/lib/ruby/1.8/net/smtp.rb:571:in __send__' c:/ruby/lib/ruby/1.8/net/smtp.rb:571:in
authenticate’
c:/ruby/lib/ruby/1.8/net/smtp.rb:411:in do_start' c:/ruby/lib/ruby/1.8/net/smtp.rb:378:in
start’
c:/ruby/lib/ruby/1.8/net/smtp.rb:316:in `start’
i have followed these instructions:
http://wiki.rubyonrails.com/rails/pages/HowToSendEmailsWithActionMailer
model notifier.rb
class Notifier < ActionMailer::Base
def signup_confirmation(user)
Email header info MUST be added here
@recipients = user.email
@from = “[email protected]”
@subject = “Action Required to Activate Account for Twodecode!”
Email body substitutions go here
@body[“first_name”] = user.first_name
@body[“last_name”] = user.last_name
end
end
the controller
def confirmation_mail
user = User.find(1)
Notifier::deliver_signup_confirmation(user)
end
signup_confirmation.rhtml
Dear <%= @first_name %> <%= @last_name %>,
Thanks for signing up with My Website!
Your account will allow you to do blah, blah, blah.
can anyone help me?
Thanks.
Nick