Problem with SMTP mail program


#1

Hi,

I took following very simple mail program from one of Ruby site, it is
working fine on my system, but not on other system. The only difference
which i Observed is that on other machine Microsoft Outlook is not
installed.

Please tell me the reason?

msgstr = <<END_OF_MESSAGE
From: Dhiraj G. removed_email_address@domain.invalid
To: Dhiraj G. removed_email_address@domain.invalid
Subject: test message
Date: Sat, 14 Jun 2007 16:26:43 +0900
Message-Id: removed_email_address@domain.invalid

This is a test message.

END_OF_MESSAGE

require 'net/smtp'
Net::SMTP.start('samplemailexchangeserver.arcot.com', 25) do |smtp|
  smtp.send_message msgstr,
                    'removed_email_address@domain.invalid',
                    'removed_email_address@domain.invalid'
end

Regards:
Dhiraj


#2

How about some error description?

by
TheR


#3

Damjan R. wrote:

How about some error description?

by
TheR

I am getting following error message…

d:/ruby/lib/ruby/1.8/net/protocol.rb:206:in initialize': getaddrinfo: no address associated with hostname. (S ocketError) from d:/ruby/lib/ruby/1.8/net/protocol.rb:206:innew’
from d:/ruby/lib/ruby/1.8/net/protocol.rb:206:in old_open' from d:/ruby/lib/ruby/1.8/timeout.rb:56:intimeout’
from d:/ruby/lib/ruby/1.8/timeout.rb:76:in timeout' from d:/ruby/lib/ruby/1.8/net/protocol.rb:206:inold_open’
from d:/ruby/lib/ruby/1.8/net/smtp.rb:393:in do_start' from d:/ruby/lib/ruby/1.8/net/smtp.rb:378:instart’
from d:/ruby/lib/ruby/1.8/net/smtp.rb:316:in `start’


#4

Sounds like a DNS error.

Do you get DNS to that address? I don’t.

Aur