Hi
I am currently developing on my local machine. I also have an account
with Dreamhost.
However, I trying to send an email from my localhost, using my dreamhost
smtp account. I followed
http://wiki.rubyonrails.org/rails/pages/HowToSendEmailsWithActionMailer
tutorial, but it’s not working.
Here are my files:
environment.rb:
ActionMailer::Base.delivery_method = :sendmail
ActionMailer::Base.smtp_settings = {
:address => “mail.website.com”,
:port => 25,
:domain => “website.com”, # i have also tried mail.website.com
:authentication => :login,
:user_name => “username”,
:password => “password”
}
ActionMailer::Base.perform_deliveries = true
ActionMailer::Base.raise_delivery_errors = true
WelcomeController.rb
def index
Notifier.deliver_signup_thanks
end
Can anyone help me out? Does it not work form localhost?