Email Senders in distress,

"getaddrinfo: no address associated with hostname. "

Likely now ruby/smtp is trying to do a DNS lookup on the domain you
provided. So if you made a hostname that actual does not resolve to
anything it will get upset. The simplest thing to do is add the new
domain to your "hosts" file. Which in Windows is in this directory
within "system32" /drivers/etc/hosts. Add a line for you computer/
domain name:

example:
192.168.1.2 nicedell.localhost

But this is just the start of your problems. Getting the email to
yahoo's SMTP servers is about as far as the email will get. Yahoo is
going to be VERY,VERY strict about allowing you to send email from a
random computer it's never received email from. Secondly, your actual
IP address at your gateway is what Yahoo will see as the sending
source IP and this won't match your envelope  nor match the sending
domain. All of this headache is for defending against SPAM bots and
the like.

You need to do some reading about these email authentication schemes:

SenderID
SPF
Domain Keys

Hank
On Sep 25, 9:21 am, "sreeprasad sp" <[EMAIL PROTECTED]> wrote:
> I tried to change the DOMAIN name . Now I am recieving End Of File reached
> error.
>
> getaddrinfo: no address associated with hostname.
>
> lib/smtp_tls.rb:10:in `initialize'
> lib/smtp_tls.rb:10:in `open'
> lib/smtp_tls.rb:10:in `do_start'
> lib/smtp_tls.rb:10:in `do_start'
> app/controllers/email_controller.rb:10:in `remind'
>
> On Wed, Sep 24, 2008 at 6:20 PM, Frederick Cheung <
>
>
>
> [EMAIL PROTECTED]> wrote:
>
> > On Sep 23, 9:00 pm, sreeprasad <[EMAIL PROTECTED]> wrote:
> > > I have rails space application running on my local.
> > > I have issues in sending emails on my application.
>
> > > I have configured my environment.rb as follows :
>
> > > config.action_mailer.raise_delivery_errors = true
> > >  config.action_mailer.default_charset = "utf-8"
> > > ActionMailer::Base.smtp_settings = {:address
> > > =>"smtp.mail.yahoo.co.in",
> > > :port => 587,
> > > :domain => "yahoo.com",
> > > :authentication => :login,
> > > :user_name => "[EMAIL PROTECTED]",
> > > :password => '******'}
>
> > That is almost certainly the wrong setting for :domain. That is the
> > domain used in the helo or ehlo command, and it is supposed to be the
> > domain name associated with your computer. Claiming to be yahoo.com
> > could easily result in the smtp server thinking you are being
> > fraudulent. You're probably better off not specifying it than
> > specifying something bogus. The :authentication might be wrong too,
> > possible values are :plain, :login, :cram_md5
>
> > Fred
>
> --
> with love
> sreeprasad
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to