mikel/mail — pull request #320 by hron84 (2012-01-03 13:58:38+00:00)
Title: Fix for undefined method 'constantize' error when no ActiveSupport loaded

There is an exception when :openssl_verify_mode is set for e.g. delivery_method but no active_support loaded.

An example:

```ruby

require 'rubygems'
require 'mail'

Mail.defaults do
delivery_method :smtp, {
:address => 'rax.anteus.hu',
:port => 2525,
:domain => 'anteus.hu',
:user_name => 'user@example.com',
:password => '******',
:authentication => 'plain',
:openssl_verify_mode => 'none',
}
end

Mail.deliver do
to 'sam@example.com'
from 'user@example.com'
subject 'test ezmail'
body 'this is just a small test'
end
```

It throws:

```
/Library/Ruby/Gems/1.8/gems/mail-2.3.0/lib/mail/network/delivery_methods/smtp.rb:118:in `deliver!': undefined method `constantize' for "OpenSSL::SSL::VERIFY_NONE":String (NoMethodError)
from /Library/Ruby/Gems/1.8/gems/mail-2.3.0/lib/mail/message.rb:1989:in `do_delivery'
from /Library/Ruby/Gems/1.8/gems/mail-2.3.0/lib/mail/message.rb:232:in `deliver'
from /Library/Ruby/Gems/1.8/gems/mail-2.3.0/lib/mail/mail.rb:140:in `deliver'
from /Users/hron/bin/ezmail:20
```