I''m trying to implement a user verification phase in my user
registration controller.
So I do something like this from within my controller:
Notifications.deliver_verification(@user)
The method in the mailer object looks like this:
def verification(user,sent_at = Time.now)
@subject = ''Welcome to XXX''
@body = {}
@recipients = user.email
@from = "customerservice@XXX"
@sent_on = sent_at
@headers = {}
@body["user"] = user
end
But whenever it calls it gives me:
===============EOFError in User#signup
End of file reached
app/controllers/user_controller.rb:24:in `signup''
script/server:48
===============Where line 24 is the deliver_verification call.
It works fine in Unit Testing which makes me think it is the
communication to the mailserver. But it''s a bit hard to debug from the
message.
Anyone else seen anything like this before? I''ll try playing around
with config settings. I''m on my brand new powerbook btw. Yipee.
Pelle
--
http://talk.org + Geek blog
http://SoapBX.com + Get on the box and shout