Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fiddling around to get TLS to work

  • Loading branch information...
commit 112013e3244d062c72b773cd8fe059a319565cec 1 parent f47325d
@nathanl authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 emailer.rb
View
5 emailer.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.