openrain / action_mailer_tls

Gmail and ActionMailer
Apache License 2.0
79 stars 7 forks source link

ArgumentError : wrong number of arguments (3 for 2) #1

Closed knightsamar closed 14 years ago

knightsamar commented 14 years ago

Hi,

I have rails 2.3.5 and ruby 1.8.7 and am using redmine 0.9

When I execute Notifier.deliver_hello_world for testing, I get the following error log on script/console

ArgumentError: wrong number of arguments (3 for 2) from /usr/lib/ruby/gems/1.8/gems/openrain-action_mailer_tls-1.1.3/lib/smtp_tls.rb:8:in check_auth_args' from /usr/lib/ruby/gems/1.8/gems/openrain-action_mailer_tls-1.1.3/lib/smtp_tls.rb:8:indo_start' from /usr/lib/ruby/1.8/net/smtp.rb:525:in start' from /usr/lib/ruby/gems/1.8/gems/actionmailer-2.3.5/lib/action_mailer/base.rb:682:inperform_delivery_smtp' from /usr/lib/ruby/gems/1.8/gems/actionmailer-2.3.5/lib/action_mailer/base.rb:523:in __send__' from /usr/lib/ruby/gems/1.8/gems/actionmailer-2.3.5/lib/action_mailer/base.rb:523:indeliver!' from /usr/lib/ruby/gems/1.8/gems/actionmailer-2.3.5/lib/action_mailer/base.rb:395:in `method_missing' from (irb):2

Any fixes ?

mchung commented 14 years ago

knightsamar, if you're using 2.3.5 and 1.8.7, you don't need this gem. remove it and follow the instructions to configure Rails to send your email via secure SMTP.

ActionMailer::Base.smtp_settings = { :address => "smtp.gmail.com", :port => 587, :authentication => :plain, :enable_starttls_auto => true, :user_name => "noreply@gmail_or_your_google_domain.com", :password => "yinyang" }