Ruby mailer is coming up with an EOFError -


I'm getting an EOFError (the end of the file error) on this code in my controller, the block in which the error appears At the end of the line, which says UserMailer.deliver_message ( I am unaware of how to fix it, I was stuck for about 2 months and this site was suggested. Please help.

  def contact @ title = "contact us" if request.post? @ Message = message.new (params [: contact]) if @ message.valid ? UserMailer.deliver_message (: Message = & gt; @message) Flash [: Notice] = "Thank you for contacting us" redirect_to contact_url End End  

Here is the message file: / P>

  and lt;% = @ message.name%> Feedback or a question sent: Message: & lt;% = @ message.body% & gt; from: & lt;% = @ Message.email%>  

and here user mailer

  class UserMailer  

OK, I get this error


EOFError #

in the pedal controller # contact reached

end of file


and there is an application trace


  /usr/lib64/ruby/1.8/net/protocol.rb: 135: in` sysread '/usr/lib64/ruby/1.8/net/protocol.rb:135:in `Rbuf_fill '/usr/lib64/ruby/1.8/timeout.rb: 62: in`timeout' /usr/lib64/ruby/1.8/timeout .rb: 93:` timeout '/usr/lib64/ruby/1.8/net /protocol.rb: 134: in`rbuf_fill '/usr/lib64/ruby/1.8/net/protocol.rb116:' to read '/usr/lib64/ruby/1.8/net/protocol.rb:126:IN 'Readline' /usr/lib64/ruby/1.8/net/smtp.rb:911:en `recv_response '/ usr / lib64 / ruby ​​/ 1.8 / net / smtp.rb: 897:` getok' / usr / lib64 /ruby/1.8/net/smtp.rb: 921: in` important '/usr/lib64/ruby/1.8/net/ In smtp.rb: 895: `get '/ / url / lib 64 / ruby ​​/ 1/8 / net / smtp.rb: 828: IN' mailframe '/usr/lib64/ruby/1.8/net/smtp.rb : 653: IN 'sendmail' $ HOME /blueflower/vendor/rails/actionmailer/lib/action_mailer/base.rb:684:in `display_delivery_smpt '/' $ _ / '/' $ HOME / blueflower / seller / rail / ActionMelier / lib / action_mailer / base.rb: 682: `display _ delivery_smpt '/ $ / url / lib64 / rub / 1.8 / net / smpt in $ HOME Blueflower / Seller / Rail / Action Mailer / lib / action_mailer / base.rb: 523: `__send__ '$ HOME / blueflower / Seller / Rail / Action Mailer / lib / action_mailer / base.rb: 523:' deliver! '/blueflower/vendor/rails/actionmailer/lib/action_mailer/base.rb:395:in' `$ HOME / blueflower / app / controllers / pedals_controller.rb: $ 36 in` HOME ' Maybe I'm really stupid, but if someone can answer it, then it would be amazing. Besides, what is my decision? 

It may also be that the SMTP server is down (I use a 3rd party mailer that is sentgrid Is called and it happened once it went down completely)


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -