Welcome Guest | Login

ActionMailer error: EPIPE (Broken pipe)

My controller send mail with ActionMailer (sendmail).
I've problems sending mail from my rails app.

There were something wrong.
I searched for sendmail in telnet, but I could not find it.

Errno::EPIPE (Broken pipe):
   /vendor/rails/actionmailer/lib/action_mailer/base.rb:609:in `write'
   /vendor/rails/actionmailer/lib/action_mailer/base.rb:609:in `print'
   /vendor/rails/actionmailer/lib/action_mailer/base.rb:609:in `perform_delivery_sendmail'
   /vendor/rails/actionmailer/lib/action_mailer/base.rb:608:in `popen'
   /vendor/rails/actionmailer/lib/action_mailer/base.rb:608:in `perform_delivery_sendmail'
   /vendor/rails/actionmailer/lib/action_mailer/base.rb:481:in `__send__'
   /vendor/rails/actionmailer/lib/action_mailer/base.rb:481:in `deliver!'
   /vendor/rails/actionmailer/lib/action_mailer/base.rb:387:in `deliver'

2008-06-18 02:14 AM

Hi Steven,

The sendmail configuration seems currently to be under ~app/config/environments/production.rb. Can you try swapping the whole entry under your ~app/config/environment.rb ?
Also, there seem to be both smtp and sendmail settings included. Could you try putting the entries as exactly as shown below in to your config/environment.rb ?

============
ActionMailer::Base.delivery_method = :smtp  
ActionMailer::Base.server_settings = {  
 :address => "domain-of-smtp-host.com"
 :domain => "domain-of-sender.com",
 :port => 25,  
 :authentication => :login,  
 :user_name => "your_user_name",  
 :password => "*****" }  
ActionMailer::Base.perform_deliveries = true  
ActionMailer::Base.raise_delivery_errors = true  
ActionMailer::Base.default_charset = "utf-8"
============

2008-06-18 03:01 AM

ActionMailer::Base.delivery_method = :smtp  
ActionMailer::Base.server_settings = {  
:address => "domain-of-smtp-host.com",
:domain => "domain-of-sender.com",
:port => 25,  
:authentication => :login,  
:user_name => "your_user_name",  
:password => "*****" }  
ActionMailer::Base.perform_deliveries = true  
ActionMailer::Base.raise_delivery_errors = true  
ActionMailer::Base.default_charset = "utf-8"

Everything is ok... thank you.

2008-06-18 04:53 AM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.