Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable TLS support under Ruby 1.8.x.
There needs to be a check for which version of ruby is being used when trying to enable tls support. Ruby 1.8 Net::SMTP does not support the context object for enabling the TLS support, you need to pass the OPEN::SSL::VERIFY related constant directly. This patch checks for the version of Ruby and enables it as appropriate.
- Loading branch information
Hm, is this line correct? Shouldn't it be
smtp.enable_starttls_auto(context)
like before?