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