# Broken pipe and send mail

**URL:** <https://www.ruby-forum.com/t/broken-pipe-and-send-mail/121823>\
**Category:** Rails\
**Created:** [December 1, 2007, 12:06pm UTC](https://www.ruby-forum.com/t/broken-pipe-and-send-mail/121823 "2007-12-01T12:06:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![macario](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/b4bc9f/32.png) [@macario](https://www.ruby-forum.com/u/macario)\
**Post date:** [December 1, 2007, 12:06pm UTC](https://www.ruby-forum.com/t/broken-pipe-and-send-mail/121823/1 "2007-12-01T12:06:05Z")

</div>

I’ve problems sending mail from my rails app

In the app config/enviroment.rb file I have this settings:

ActionMailer::Base.delivery\_method = :sendmail

ActionMailer::Base.sendmail\_settings = {  
:location =\> ‘/usr/sbin/sendmail’,  
:arguments =\> ‘-i -t’  
}

I’ve followed this gide:  
[http://www.red91.com/articles/2007/11/05/sending-mail-with-rails](http://www.red91.com/articles/2007/11/05/sending-mail-with-rails)

But when I try to send mail I get a broken pipe error.

I will apreciate any feedback

---

<div class="post-metadata">

**Author:** ![macario](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/b4bc9f/32.png) [@macario](https://www.ruby-forum.com/u/macario)\
**Post date:** [December 11, 2007, 5:32pm UTC](https://www.ruby-forum.com/t/broken-pipe-and-send-mail/121823/2 "2007-12-11T17:32:22Z")

</div>

Hello,

I think you must install sendmail program as you say with the line  
/usr/sbin/sendmail.

You can try with sudo apt-get install sendmail

I tried that and now everything is working.

Good luck

Macario O. wrote:

> I’ve problems sending mail from my rails app
> 
> In the app config/enviroment.rb file I have this settings:
> 
> ActionMailer::Base.delivery\_method = :sendmail
> 
> ActionMailer::Base.sendmail\_settings = {  
> :location =\> ‘/usr/sbin/sendmail’,  
> :arguments =\> ‘-i -t’  
> }
> 
> I’ve followed this gide:  
> [http://www.red91.com/articles/2007/11/05/sending-mail-with-rails](http://www.red91.com/articles/2007/11/05/sending-mail-with-rails)
> 
> But when I try to send mail I get a broken pipe error.
> 
> I will apreciate any feedback
