M
mad joker
[Note: parts of this message were removed to make it a legal post.]
Hi,
I was trying a simple mail smtp server in ruby. I tried the code in
the following link
http://snippets.dzone.com/posts/show/3932
I am unable to send mail to my gmail account from the server. Can you please
tell What may be the reason?
I dont want to use any SMTP servers like ( sendmail or qmail) .I used the
code in the link as server.rb.
I tried using the following simple code
msgstr = <<END_OF_MESSAGE
From: joker <[email protected]>
To: some <[email protected]>
Subject: test message
Date: Sat, 23 Jun 2001 16:26:43 +0900
Message-Id: <[email protected]>
This is a test message.
END_OF_MESSAGE
require 'net/smtp'
smtp = Net::SMTP.start('127.0.0.1', 25)
smtp.send_message msgstr, '(e-mail address removed)', '(e-mail address removed)'
smtp.finish
Yes my email address are changed.. But even if i give correct mail address.
I am not able to send.
Hi,
I was trying a simple mail smtp server in ruby. I tried the code in
the following link
http://snippets.dzone.com/posts/show/3932
I am unable to send mail to my gmail account from the server. Can you please
tell What may be the reason?
I dont want to use any SMTP servers like ( sendmail or qmail) .I used the
code in the link as server.rb.
I tried using the following simple code
msgstr = <<END_OF_MESSAGE
From: joker <[email protected]>
To: some <[email protected]>
Subject: test message
Date: Sat, 23 Jun 2001 16:26:43 +0900
Message-Id: <[email protected]>
This is a test message.
END_OF_MESSAGE
require 'net/smtp'
smtp = Net::SMTP.start('127.0.0.1', 25)
smtp.send_message msgstr, '(e-mail address removed)', '(e-mail address removed)'
smtp.finish
Yes my email address are changed.. But even if i give correct mail address.
I am not able to send.