Broken pipe (Errno::EPIPE)

L

Lucky Nl

Hi i have declared action mailer in my ruby file. am sending mail
but while sending giving error is
-----------------------------------------------------------------------------


/usr/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_view/renderable.rb:77:
command not found: /usr/sbin/sendmail -i -t
/usr/lib/ruby/gems/1.8/gems/actionmailer-2.3.5/lib/action_mailer/base.rb:692:in
`write': Broken pipe (Errno::EPIPE)
from
/usr/lib/ruby/gems/1.8/gems/actionmailer-2.3.5/lib/action_mailer/base.rb:692:in
`print'
from
/usr/lib/ruby/gems/1.8/gems/actionmailer-2.3.5/lib/action_mailer/base.rb:692:in
`perform_delivery_sendmail'
from
/usr/lib/ruby/gems/1.8/gems/actionmailer-2.3.5/lib/action_mailer/base.rb:691:in
`popen'
from
/usr/lib/ruby/gems/1.8/gems/actionmailer-2.3.5/lib/action_mailer/base.rb:691:in
`perform_delivery_sendmail'
from
/usr/lib/ruby/gems/1.8/gems/actionmailer-2.3.5/lib/action_mailer/base.rb:523:in
`__send__'
from
/usr/lib/ruby/gems/1.8/gems/actionmailer-2.3.5/lib/action_mailer/base.rb:523:in
`deliver!'
from
/usr/lib/ruby/gems/1.8/gems/actionmailer-2.3.5/lib/action_mailer/base.rb:395:in
`method_missing'
from daemon.rb:101
-----------------------------------------------------------



My code is declaerd as


class Notification < ActionMailer::Base
def deal_cancel_mailer
recipients "(e-mail address removed)"
from "(e-mail address removed)"
subject "my subject"

body :variable1 => 'a', :variable2 => 'b'
end
end

Notification.template_root = File.dirname("/home/lakshmi/Aptana Studio
Workspace/groupbuy/app/views/notification")
Notification.delivery_method = :sendmail
Notification.logger = Logger.new(STDOUT)

# this sends the email
Notification.deliver_deal_cancel_mailer

can anybody help
 
R

Roger Pack

/usr/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_view/renderable.rb:77:
command not found: /usr/sbin/sendmail -i -t
/usr/lib/ruby/gems/1.8/gems/actionmailer-2.3.5/lib/action_mailer/base.rb:692:in
`write': Broken pipe (Errno::EPIPE)
from

My guess is that this means sendmail exited early for whatever reason.
Check that it works, or try a different mail method.
GL.
-r
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,073
Latest member
DarinCeden

Latest Threads

Top