Can someone explain to me why this error might be returning, and help me understand the code below: [code] ActionMailer::Base.delivery_method = :smtp #not using sendmail i''d prefer smtp ActionMailer::Base.server_settings = { :address => "", # what goes here? let''s assume I want to use my hotmail email to send these emails, would it be "smtp.hotmail.com" :port => 25, # default port, mostly? :domain => "", #do I put my website domain name, or www.hotmail.com? need explanation :authentication => :login, :user_name => "", # do i place my hotmail login info here, my user-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org? :password => "" # my hotmail password? } ActionMailer::Base.perform_deliveries = true ActionMailer::Base.raise_delivery_errors = true ActionMailer::Base.default_charset = "utf-8" [/code] -- Posted via http://www.ruby-forum.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 -~----------~----~----~----~------~----~------~--~---
James Mitchell
2008-May-06 15:06 UTC
Re: getaddrinfo: No address associated with nodename, help?!
I''m not as familiar with Hotmail as I am with Yahoo, Gmail, and a few others, but you can''t send email via hotmail unless you are authorized to do so. And you typically have to pay for such services (Yahoo requires that you have Yahoo Plus). Any smtp server that allows you to send without authentication would be flagged as an open relay and would pretty much be blacklisted in minutes by most smtp traffic monitoring services. Let''s assume that you are, in fact, allowed to send mail via Hotmail. You would need to find out what the smtp server address is from their website. You can''t just guess. For example, here is what Yahoo says about their services: http://help.yahoo.com/l/us/yahoo/mail/original/mailplus/pop/pop-14.html Other resources: http://support.netfirms.com/article.php?id=009 http://ask-leo.com/what_are_the_pop3_and_smtp_settings_for_hotmail.html Hope that helps you! On Tue, May 6, 2008 at 1:04 AM, Andy Andy <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Can someone explain to me why this error might be returning, and help me > understand the code below: > > [code] > ActionMailer::Base.delivery_method = :smtp #not using sendmail i''d > prefer smtp > ActionMailer::Base.server_settings = { > :address => "", # what goes here? let''s assume > I want to use my hotmail email to send these emails, would it be > "smtp.hotmail.com" > :port => 25, # default port, mostly? > :domain => "", #do I put my website domain name, > or www.hotmail.com? need explanation > :authentication => :login, > :user_name => "", # do i place my hotmail login > info here, my user-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org? > :password => "" # my hotmail password? > } > ActionMailer::Base.perform_deliveries = true > ActionMailer::Base.raise_delivery_errors = true > ActionMailer::Base.default_charset = "utf-8" > [/code] > -- > Posted via http://www.ruby-forum.com/. > > > >-- James Mitchell --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---