Has anyone tried setting up ActionMailer to use SMTP on DreamHosts servers? I''m not getting any errors on my setup, but I''m also not receiving the message from my app. Here''s my setup. in config/environment.rb: ActionMailer::Base.delivery_method = :smtp ActionMailer::Base.server_settings = { :address => ''mail.domain.com'', :port => 25, :domain => ''domain.com'', :user_name => ''m9XXXXX6-9IKiO1iGCm/QT0dZR+AlfA@public.gmane.org'', :password => ''password'', :authentication => :login } I''ve tried my "user_name" with and without the domain. I''ve also tried "authentication" with :login and :plain. Any advice would be great since it seems like there is so little documentation on the web about using ActionMailer. Thanks Clint
Clint, Yes, I''ve set it up before. You have to use the unix user name (m58xxxxx, or whatever). Don''t tack the domain name on it. Other than that, your configuration looks like mine. Actually, I don''t have the line ActionMailer::Base.delivery_method = :smtp in my setup. It''s using the default. Maybe try removing that... Hope this helps, Brett On Oct 14, 2005, at 11:55 AM, Clint Pidlubny wrote:> Has anyone tried setting up ActionMailer to use SMTP on DreamHosts > servers? I''m not getting any errors on my setup, but I''m also not > receiving the message from my app. Here''s my setup. > > in config/environment.rb: > > ActionMailer::Base.delivery_method = :smtp > ActionMailer::Base.server_settings = { > :address => ''mail.domain.com'', > :port => 25, > :domain => ''domain.com'', > :user_name => ''m9XXXXX6-9IKiO1iGCm/QT0dZR+AlfA@public.gmane.org'', > :password => ''password'', > :authentication => :login > } > > I''ve tried my "user_name" with and without the domain. I''ve also > tried "authentication" with :login and :plain. > > Any advice would be great since it seems like there is so little > documentation on the web about using ActionMailer. > > Thanks > Clint > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
On 10/14/05, Clint Pidlubny <clint-DOvxo+vduAZWk0Htik3J/w@public.gmane.org> wrote:> Has anyone tried setting up ActionMailer to use SMTP on DreamHosts > servers? I''m not getting any errors on my setup, but I''m also not > receiving the message from my app. Here''s my setup.I''m using in on Dreamhost just fine. Your problem is in the :user_name -- use just the mailbox name without the domain. Also, you may need "mail.domain.com" for your address. Here''s my full setup: ActionMailer::Base.delivery_method = :smtp ActionMailer::Base.server_settings = { :address => "mail.domain.com", :port => 25, :domain => "www.domain.com", :authentication => :login, :user_name => "m5xxxxx9", :password => "password"} ActionMailer::Base.perform_deliveries = true ActionMailer::Base.raise_delivery_errors = true ActionMailer::Base.default_charset = "utf-8" -eric