I had some trouble with this as well, but this came in handy:
http://wiki.dreamhost.com/ActionMailer
This is what mine looks like, but it is specific for sending emails
from a subdomain:
# Include your application configuration below
ActionMailer::Base.server_settings = {
:address => "mail.domain.com",
:port => 25,
:domain => ''subdomain.domain.com'',
:user_name => "m1234567",
:password => "password",
:authentication => :login
}
On 6/7/07, Noob
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:>
> 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?
>
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>
--
F. Morgan Whitney
http://www.blizzo.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---