# adzap-AR\_Mailer sending email error

**URL:** <https://www.ruby-forum.com/t/adzap-ar-mailer-sending-email-error/162417>\
**Category:** Rails\
**Created:** [March 9, 2009, 8:04pm UTC](https://www.ruby-forum.com/t/adzap-ar-mailer-sending-email-error/162417 "2009-03-09T20:04:29Z")\
**Posts on this page:** 3\
**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:** [March 9, 2009, 8:04pm UTC](https://www.ruby-forum.com/t/adzap-ar-mailer-sending-email-error/162417/1 "2009-03-09T20:04:29Z")

</div>

I am getting the following error when I try to send an email using the  
ar\_mailer:

Unhandled exception wrong number of arguments (7 for 6)  
(ArgumentError):

I found an article that stated the following

"My problem is the number of arguments passed for mail account  
configuration in environment.rb does not match the number of arguments  
that ar\_sendmail required (6 for 7 as you see in the error message).

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."

I am new to RoR and need a little help with what I should do to fix  
this problem.

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:** [March 10, 2009, 3:32am UTC](https://www.ruby-forum.com/t/adzap-ar-mailer-sending-email-error/162417/2 "2009-03-10T03:32:50Z")

</div>

I guess you have installed Ruby 1.8.7  
if so, install 1.8.6 and try it again

Regards

On Mon, Mar 9, 2009 at 8:03 PM, Sean McGilvray [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> configuration in environment.rb does not match the number of arguments
> 
> Sean McGIlvray
> 
> >

–  
/\*\*

- dagi3d v4 | [http://dagi3d.net](http://dagi3d.net)  
\*/

---

<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:** [March 10, 2009, 4:40pm UTC](https://www.ruby-forum.com/t/adzap-ar-mailer-sending-email-error/162417/3 "2009-03-10T16:40:11Z")

</div>

Borja MartÃ­n: If I am on a shared hosting how do I use 1.8.6 instead of  
1.8.7?

Sean
