I had this problem. Some devs (and Heroku) were running 1.8.6 and
other devs were running 1.8.7. I added a little bit of code that
checked the ruby version and loaded the smtp_tls if it is <=1.8.6. I
added this to an initializer. Works like a charm.

ruby_version = /([0-9]+)\.([0-9]+)\.([0-9]+)/.match(`ruby -v`)
if ruby_version[1].to_i <= 1 and ruby_version[2].to_i <= 8 and
ruby_version[3].to_i <= 6
  require "smtp_tls"
end

P.S.
If anyone knows of a better way to check the ruby version, please
share! :)


On Oct 6, 2:53 am, Kenny Carruthers <[email protected]> wrote:
> In Ruby 1.8.7, SMTP TLS support was added/fixed that opened using
> GMail to send email without having to use something like smtp_tls.
>
> From what I can tell, my Heroku apps are running under Ruby 1.8.6. Is
> there any way to run them under Ruby 1.8.7 to take advantage of this
> fix?
>
> Alternatively, is there a solution people are using that lets you send
> mail via GMail under both Ruby 1.8.6 and 1.8.7?
>
> Thanks in advance.
>
> Sincerely,
> Kenny
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to