I am getting an EOFError (End Of File Error) on this code in my controller. The block where the error appears is at the end of the line that says UserMailer.deliver_m
UserMailer.deliver_m
It's a problem with your SMTP.
The mailer connect by SMTP to him and can't close corretly the socket.