J
Jen
[Note: parts of this message were removed to make it a legal post.]
Hello,
I have only just started seariously playing with Ruby.
I have a script that needs to e-mail data it has gathered to a specific
address. I want to use my hotmail account to send out the e-mail until I
sort my own mail server, but can't connect using pony.
my code is:
Pony.mailto => "(e-mail address removed)", :from =>
"(e-mail address removed)", :via => :smtp,
:smtp => {:host => "smtp.live.com", ort => "25", :tls => true, :user
=> "fMyUserName",
assword => "MyPassword", :auth => lain,
#:login, :cram_md5,
:domain => "localhost:chicken"}, :subject => "Optelec tweets", :body =>
"This is a test")
I am trying to send the email to myself to check if I can receive it.
Does it matter that the 'from' and 'to' addresses are the same.
When I run this (with the correct username and password) the connection
times out.
Uncommenting the commented line above gives errors when running, and I
think this line is actually gmail specific.
If there is a better way of doing this please let me know.
Regards,
Jen.
Hello,
I have only just started seariously playing with Ruby.
I have a script that needs to e-mail data it has gathered to a specific
address. I want to use my hotmail account to send out the e-mail until I
sort my own mail server, but can't connect using pony.
my code is:
Pony.mailto => "(e-mail address removed)", :from =>
"(e-mail address removed)", :via => :smtp,
:smtp => {:host => "smtp.live.com", ort => "25", :tls => true, :user
=> "fMyUserName",
assword => "MyPassword", :auth => lain,
#:login, :cram_md5,
:domain => "localhost:chicken"}, :subject => "Optelec tweets", :body =>
"This is a test")
I am trying to send the email to myself to check if I can receive it.
Does it matter that the 'from' and 'to' addresses are the same.
When I run this (with the correct username and password) the connection
times out.
Uncommenting the commented line above gives errors when running, and I
think this line is actually gmail specific.
If there is a better way of doing this please let me know.
Regards,
Jen.