Problem with SMTP mail program

D

Dhiraj Girdhar

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 Girdhar <[email protected]>
To: Dhiraj Girdhar <[email protected]>
Subject: test message
Date: Sat, 14 Jun 2007 16:26:43 +0900
Message-Id: <[email protected]>

This is a test message.
END_OF_MESSAGE

require 'net/smtp'
Net::SMTP.start('samplemailexchangeserver.arcot.com', 25) do |smtp|
smtp.send_message msgstr,
'(e-mail address removed)',
'(e-mail address removed)'
end

Regards:
Dhiraj
 
D

Dhiraj Girdhar

Damjan said:
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:in `new'
from d:/ruby/lib/ruby/1.8/net/protocol.rb:206:in `old_open'
from d:/ruby/lib/ruby/1.8/timeout.rb:56:in `timeout'
from d:/ruby/lib/ruby/1.8/timeout.rb:76:in `timeout'
from d:/ruby/lib/ruby/1.8/net/protocol.rb:206:in `old_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:in `start'
from d:/ruby/lib/ruby/1.8/net/smtp.rb:316:in `start'
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,074
Latest member
StanleyFra

Latest Threads

Top