D
Dan Diebolt
--0-1195016788-1135850334=:49285
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
I am trying to send email from my comcast email account (say (e-mail address removed)=
et) to my yahoo email accout (say (e-mail address removed)) from a ruby script using =
net/smtp:
=20
require 'net/smtp'
Net::SMTP.start("smtp.comcast.net", 25,"localhost","user","pass") do |smt=
p|
smtp.send_message "hello","(e-mail address removed)","(e-mail address removed)"=20
end
=20
After trying the above ruby in irb I get the following message with no =
email delivered:
=20
=3D> "250 Mail queued for delivery.\n"
=20
I don't understand how the third argument to Net::SMTP.start should be =
specified; its called "helo" and documentation says it defaults to 'local=
host.localdomain'. I would appreciate it if anyone could point out what I=
am doing wrong.
=20
I am pretty sure I have the smtp, pop3 and ports identified correctly a=
s I can send email using the command line utility postie (http://www.infr=
adig.com/postie/index.shtml):
=20
postie -esmtp -host:smtp.comcast.net -to:[email protected] -from:me@comcast.=
net -s:subject -msg:hello -user:user -passass=20
=20
#Incoming mail (POP3): mail.comcast.net=20
#Incoming mail (POP3): 110
#Outgoing mail (SMTP): smtp.comcast.net=20
#Outgoing mail (SMTP): port is set to 25
=20
=20
=09
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
I am trying to send email from my comcast email account (say (e-mail address removed)=
et) to my yahoo email accout (say (e-mail address removed)) from a ruby script using =
net/smtp:
=20
require 'net/smtp'
Net::SMTP.start("smtp.comcast.net", 25,"localhost","user","pass") do |smt=
p|
smtp.send_message "hello","(e-mail address removed)","(e-mail address removed)"=20
end
=20
After trying the above ruby in irb I get the following message with no =
email delivered:
=20
=3D> "250 Mail queued for delivery.\n"
=20
I don't understand how the third argument to Net::SMTP.start should be =
specified; its called "helo" and documentation says it defaults to 'local=
host.localdomain'. I would appreciate it if anyone could point out what I=
am doing wrong.
=20
I am pretty sure I have the smtp, pop3 and ports identified correctly a=
s I can send email using the command line utility postie (http://www.infr=
adig.com/postie/index.shtml):
=20
postie -esmtp -host:smtp.comcast.net -to:[email protected] -from:me@comcast.=
net -s:subject -msg:hello -user:user -passass=20
=20
#Incoming mail (POP3): mail.comcast.net=20
#Incoming mail (POP3): 110
#Outgoing mail (SMTP): smtp.comcast.net=20
#Outgoing mail (SMTP): port is set to 25
=20
=20
=09