# ActionMailer and Dreamhost

**URL:** <https://www.ruby-forum.com/t/actionmailer-and-dreamhost/111754>\
**Category:** Rails\
**Created:** [August 10, 2007, 2:08pm UTC](https://www.ruby-forum.com/t/actionmailer-and-dreamhost/111754 "2007-08-10T14:08:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dcjgoose](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e47774/32.png) [@Dcjgoose](https://www.ruby-forum.com/u/Dcjgoose)\
**Post date:** [August 10, 2007, 2:08pm UTC](https://www.ruby-forum.com/t/actionmailer-and-dreamhost/111754/1 "2007-08-10T14:08:31Z")

</div>

Hello,

I am running my RoR app on localhost and am trying to implement  
ActionMailer. In my environment.rb config file, I am pointing to my  
smtp server on Dreamhost:

ActionMailer::Base.delivery\_method = :sendmail  
ActionMailer::Base.server\_settings = {  
:address =\> ‘mail.domain.info’,  
:port =\> 25,  
:domain =\> ‘subdomain.domain.info’,  
:user\_name =\> ‘m5120507’,  
:password =\> ‘password’,  
:authentication =\> :login,  
}

ActionMailer::Base.raise\_delivery\_errors = true  
ActionMailer::Base.perform\_deliveries = true  
ActionMailer::Base.default\_charset = ‘utf-8’

When looking at the log, I do see that the email is generated. Here is  
the error message:

Errno::ENOENT in ProjectsController#create

No such file or directory - /usr/sbin/sendmail -i -t

RAILS\_ROOT: ./script/…/config/…  
Application Trace | Framework Trace | Full Trace

c:/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.3.3/lib/action\_mailer/  
base.rb:572:in `popen' c:/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.3.3/lib/action_mailer/ base.rb:572:in`perform\_delivery\_sendmail’  
c:/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.3.3/lib/action\_mailer/  
base.rb:451:in `send' c:/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.3.3/lib/action_mailer/ base.rb:451:in`deliver!’  
c:/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.3.3/lib/action\_mailer/  
base.rb:333:in `method_missing' #{RAILS_ROOT}/app/controllers/projects_controller.rb:66:in`create’  
-e:4:in `load’  
-e:4

Thanks!  
-Dina

---

<div class="post-metadata">

**Author:** ![Dcjgoose](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e47774/32.png) [@Dcjgoose](https://www.ruby-forum.com/u/Dcjgoose)\
**Post date:** [August 10, 2007, 11:45pm UTC](https://www.ruby-forum.com/t/actionmailer-and-dreamhost/111754/2 "2007-08-10T23:45:39Z")

</div>

Dcjgoose wrote:

> …In my environment.rb config file, I am pointing to my  
> smtp server on Dreamhost:
> 
> ActionMailer::Base.delivery\_method = :sendmail

Then you want

ActionMailer::Base.delivery\_method = :smtp

“:sendmail” tells the mailer to use a local sendmail-compatible mailer.

> When looking at the log, I do see that the email is generated. Here is  
> the error message:
> 
> Errno::ENOENT in ProjectsController#create
> 
> No such file or directory - /usr/sbin/sendmail -i -t

This tells you there IS no local copy of sendmail.

–Al Evans

---

<div class="post-metadata">

**Author:** ![Dcjgoose](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e47774/32.png) [@Dcjgoose](https://www.ruby-forum.com/u/Dcjgoose)\
**Post date:** [August 11, 2007, 1:27pm UTC](https://www.ruby-forum.com/t/actionmailer-and-dreamhost/111754/3 "2007-08-11T13:27:31Z")

</div>

Thanks for the response. Changing the delivery\_method did fix the  
problem. Unfortunately, in all the tutorials for setting up the  
ActionMailer with Dreamhost, the delivery\_method is :sendmail.
