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
Alright, thank you guys, I actually had malformed code in the UserMailer. The actual code I had in the from line had a <> encasing an email address and had the senders name on the outside. Though that has worked on some of the private email servers I have used/work on, it does not work on Hostmonster. Soo, for anyone that ends up using Hostmonster in the future, keep everything about your mailers configuration simple (the message can be complicated but the SMTP Config needs to be simple). Thanks.
Do you have to authenticate to the mail server?
:authentication => :plain (if so), :enable_starttls_auto => true
This can also happen if the SMTP server is down. (I use a 3rd party mailer called Sendgrid and this happened once when it goes down entirely)
If you are using "ZOHO" to send email,
one of the reason I had a problem with this was.
from
value. In my case, I used a non existing email account
default from: "info@luxelectrical.net.au"
hence zoho server is not allowing the email to be sent which causes EOF Error.It's a problem with your SMTP.
The mailer connect by SMTP to him and can't close corretly the socket.