# AR\_Mailer Problem

**URL:** <https://www.ruby-forum.com/t/ar-mailer-problem/160278>\
**Category:** Rails\
**Created:** [February 13, 2009, 5:23pm UTC](https://www.ruby-forum.com/t/ar-mailer-problem/160278 "2009-02-13T17:23:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sean\_McGilvray](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/8c91f0/32.png) [@Sean\_McGilvray](https://www.ruby-forum.com/u/Sean_McGilvray)\
**Post date:** [February 13, 2009, 5:23pm UTC](https://www.ruby-forum.com/t/ar-mailer-problem/160278/1 "2009-02-13T17:23:57Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Sean\_McGilvray](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/8c91f0/32.png) [@Sean\_McGilvray](https://www.ruby-forum.com/u/Sean_McGilvray)\
**Post date:** [February 14, 2009, 4:24pm UTC](https://www.ruby-forum.com/t/ar-mailer-problem/160278/2 "2009-02-14T16:24:48Z")

</div>

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](mailto: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](http://dagi3d.net)  
\*/
