Forum: Ruby on Rails AR_Mailer Problem

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Sean McGilvray (Guest)
on 2009-02-13 18:23
(Received via mailing list)
Hi all,

I am using ar_mailer for sending newsletter. I got mails queued in
emails table. However when running ar_sendmail to begin sending the
mails, an exception is thrown:

Unhandled exception wrong number of arguments (7 for 6)
(ArgumentError):
        /usr/lib/ruby/gems/1.8/gems/ar_mailer-1.3.1/lib/action_mailer/
ar_sendmail.rb:408:in `start'
        /usr/lib/ruby/gems/1.8/gems/ar_mailer-1.3.1/lib/action_mailer/
ar_sendmail.rb:408:in `deliver'
        /usr/lib/ruby/gems/1.8/gems/ar_mailer-1.3.1/lib/action_mailer/
ar_sendmail.rb:500:in `run'
        /usr/lib/ruby/gems/1.8/gems/ar_mailer-1.3.1/lib/action_mailer/
ar_sendmail.rb:496:in `loop'
        /usr/lib/ruby/gems/1.8/gems/ar_mailer-1.3.1/lib/action_mailer/
ar_sendmail.rb:496:in `run'
        /usr/lib/ruby/gems/1.8/gems/ar_mailer-1.3.1/lib/action_mailer/
ar_sendmail.rb:340:in `run'
        /usr/lib/ruby/gems/1.8/gems/ar_mailer-1.3.1/bin/ar_sendmail:5
        /usr/bin/ar_sendmail:19:in `load'
        /usr/bin/ar_sendmail:19

I am using ar_mailer version 1.3.1.

I know the solution is this below:

The solution is: make them match either by providing the all required
arguments or delete those unavailable arguments (for you) in the
ar_sendmail function.

How exactly do I fix this error.  I am new to RoR.  Can someone give
me the steps to modify the environment file please.

Thank you,

Sean McGilvray
Borja Martín (Guest)
on 2009-02-14 17:24
(Received via mailing list)
which ruby version are you using? I think I had a similar problem
using ruby 1.8.7 and solving it by downgrading to 1.8.6...



On Fri, Feb 13, 2009 at 5:23 PM, Sean McGilvray 
<removed_email_address@domain.invalid>
wrote:
> ar_sendmail.rb:408:in `start'
>        /usr/lib/ruby/gems/1.8/gems/ar_mailer-1.3.1/bin/ar_sendmail:5
>
> How exactly do I fix this error.  I am new to RoR.  Can someone give
> me the steps to modify the environment file please.
>
> Thank you,
>
> Sean McGilvray
> >
>



--
/**
 * dagi3d v4 | http://dagi3d.net
 */
This topic is locked and can not be replied to.