smtp-tls
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:A ruby gem to enable TLS for Net::SMTP
= SMTP-TLS

I didn't author this, so I can't make any claims about it's worth, licensing, or anything else. It's just a gem package for some code that's been floating around for a few years. Check google, or the following for more information:

* http://pastie.caboo.se/135270
* http://d.hatena.ne.jp/zorio/20060416
* http://www.prestonlee.com/archives/6

== Ruby on Rails

If you're using Ruby on Rails >= 2.2 and Ruby v1.8.7 or greater, you 
{don't need this}[http://github.com/rails/rails/commit/732c724df61bc8b780dc42817625b25a321908e4]. Just set +enable_starttls_auto+ in your +ActionMailer+ config:

  ActionMailer::Base.smtp_settings = {
    :enable_starttls_auto => true,
    :address => 'smtp.gmail.com',
    :port => 587,
    :domain => 'example.com',
    :authentication => :plain,
    :user_name => 'user',
    :password => 'secret'
  }

== Dependencies

* Net::SMTP
* +OpenSSL+

== Usage

  require 'smtp-tls'

Then get back to business as usual. 

本源码包内暂不包含可直接显示的源代码文件,请下载源码包。