Prev: String comparison. Why does Ruby consider this true?
Next: Does Ruby allows setting something like SESSION variables.
From: Intransition on 18 Jun 2010 15:38 I know that Ruby 1.8.7 is supposed to support SMTP TLS but damn if I can find a lick of documentation on it. I had been using the smtp_tls gem, but wanted to update my code. Can anyone fill me it? Thanks.
From: Intransition on 18 Jun 2010 18:05 Well, after beating my head again wall for a couple of hours I answer my own question: smtp = Net::SMTP.new(server, port) smtp.enable_starttls smtp.start(domain, account, secret, login) do |s| s.send_message(msg, from, mailto) end Why I was having a problem. This does not work: Net::SMTP.start(server, port, domain, account, secret, login) do |s| s.enable_starttls s.send_message(msg, from, mailto) end ~trans
From: Roger Pack on 21 Jun 2010 13:49
> Why I was having a problem. This does not work: > > Net::SMTP.start(server, port, domain, account, secret, login) do > |s| > s.enable_starttls > s.send_message(msg, from, mailto) > end bug? impossibility? -r -- Posted via http://www.ruby-forum.com/. |