Ruby mailer is coming up with an EOFError

前端 未结 5 1063
北恋
北恋 2021-01-01 10:10

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

相关标签:
5条回答
  • 2021-01-01 10:31

    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.

    0 讨论(0)
  • 2021-01-01 10:31

    Do you have to authenticate to the mail server?

    :authentication => :plain (if so), :enable_starttls_auto => true

    0 讨论(0)
  • 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)

    0 讨论(0)
  • 2021-01-01 10:37

    If you are using "ZOHO" to send email,

    one of the reason I had a problem with this was.

    1. You should use a valid 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.
    2. You should allow IMAP settings on ZOHO
    0 讨论(0)
  • 2021-01-01 10:37

    It's a problem with your SMTP.

    The mailer connect by SMTP to him and can't close corretly the socket.

    0 讨论(0)
提交回复
热议问题