Permalink
Browse files

Fiddling around to get TLS to work

  • Loading branch information...
1 parent f47325d commit 112013e3244d062c72b773cd8fe059a319565cec @nathanl committed Nov 24, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 emailer.rb
View
@@ -18,8 +18,9 @@ def send(email)
if REALLY_SENDING
print "Mailing #{email.to_address}..."
- Net::SMTP.enable_tls
- Net::SMTP.start(smtp_server, port, domain, account_address, password, :login) do |smtp|
+ smtp = Net::SMTP.new(smtp_server, port)
+ smtp.enable_starttls
+ smtp.start(domain, account_address, account_password, :login) do |smtp|
smtp.send_message(email.message, email.from_address, email.to_address)
end

0 comments on commit 112013e

Please sign in to comment.