Re: Sending E-mail Using Gmail SMTP
action_mailer_tls has a problem with ruby 1.8.7. The code you posted in smtp_tls.rb produces
ArgumentError: wrong number of arguments (3 for 2) from
Line9. check_auth_args user, secret, authtype if user or secret.You can get fix for this issue by removing authtype parameter from check_auth_args method call
#check_auth_args user, secret, authtype if user or secret # This is for ruby 1.8.6
check_auth_args user, secret if user or secret # This is for ruby 1.8.7Details from http://blog.inspired.no/smtp-error-whil -rails-271
I've patched ActionMailerTLS so it'll work on 1.8.6 or 1.8.7. You can check it out at http://github.com/hardbap/action_mailer_tls/
*** Please Note ***
If you're on Ruby 1.8.7 and Rails >= 2.2.1 you should be using the built in support.
Last edited by hardbap (2009-06-18 12:14:27)