# Getaddrinfo: No address associated with nodename, help?!

**URL:** <https://www.ruby-forum.com/t/getaddrinfo-no-address-associated-with-nodename-help/136764>\
**Category:** Rails\
**Created:** [May 6, 2008, 7:04am UTC](https://www.ruby-forum.com/t/getaddrinfo-no-address-associated-with-nodename-help/136764 "2008-05-06T07:04:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![that\_guy\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e5b9ba/32.png) [@that\_guy\_a](https://www.ruby-forum.com/u/that_guy_a)\
**Post date:** [May 6, 2008, 7:04am UTC](https://www.ruby-forum.com/t/getaddrinfo-no-address-associated-with-nodename-help/136764/1 "2008-05-06T07:04:20Z")

</div>

Can someone explain to me why this error might be returning, and help me  
understand the code below:

```auto
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 removed_email_address@domain.invalid?
        :password => "" # my hotmail password?
}
ActionMailer::Base.perform_deliveries = true
ActionMailer::Base.raise_delivery_errors = true
ActionMailer::Base.default_charset = "utf-8"
```

---

<div class="post-metadata">

**Author:** ![that\_guy\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e5b9ba/32.png) [@that\_guy\_a](https://www.ruby-forum.com/u/that_guy_a)\
**Post date:** [May 6, 2008, 5:08pm UTC](https://www.ruby-forum.com/t/getaddrinfo-no-address-associated-with-nodename-help/136764/2 "2008-05-06T17:08:12Z")

</div>

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:  
[Help for your Yahoo Account](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://support.netfirms.com/article.php?id=009)  
[http://ask-leo.com/what\_are\_the\_pop3\_and\_smtp\_settings\_for\_hotmail.html](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  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> ## “[smtp.hotmail.com](http://smtp.hotmail.com)” ActionMailer::Base.default\_charset = “utf-8” [/code]
> 
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> 
> >

–  
James M.
