Files | Admin

Notes:

Release Name: 1.0.2

Notes:
Provides SMTP STARTTLS support for Ruby 1.8.6 (built-in for 1.8.7+).  Simply
require 'smtp_tls' and use the Net::SMTP#enable_starttls method to talk to
servers that use STARTTLS.

  require 'net/smtp'
  begin
    require 'smtp_tls'
  rescue LoadError
  end
  
  smtp = Net::SMTP.new address, port
  smtp.enable_starttls
  smtp.start Socket.gethostname, user, password, authentication do |server|
    server.send_message message, from, to
  end


Changes: === 1.0.2 / 2009-06-25 * 1 major enhancement * Improved README.txt example for TLS newbies.