# Help using ARMailer

**URL:** <https://www.ruby-forum.com/t/help-using-armailer/132499>\
**Category:** Rails\
**Created:** [March 20, 2008, 7:34pm UTC](https://www.ruby-forum.com/t/help-using-armailer/132499 "2008-03-20T19:34:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![captaffy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f04885/32.png) [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Post date:** [March 20, 2008, 7:34pm UTC](https://www.ruby-forum.com/t/help-using-armailer/132499/1 "2008-03-20T19:34:52Z")

</div>

I get this error after trying to send an email:

can’t convert nil into String

I only have one model to send emails:

class MyMailer \< ActionMailer::ARMailer

I have put this in config/development.rb:

config.action\_mailer.delivery\_method = :activerecord  
require ‘action\_mailer/ar\_mailer’

Where is the problem?

---

<div class="post-metadata">

**Author:** ![captaffy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f04885/32.png) [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Post date:** [March 20, 2008, 7:43pm UTC](https://www.ruby-forum.com/t/help-using-armailer/132499/2 "2008-03-20T19:43:42Z")

</div>

I think the problem is located in ActionView/base, so thats what my log  
tells.

---

<div class="post-metadata">

**Author:** ![captaffy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f04885/32.png) [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Post date:** [April 24, 2008, 5:14pm UTC](https://www.ruby-forum.com/t/help-using-armailer/132499/3 "2008-04-24T17:14:24Z")

</div>

I hope you’ve found a solution by now but I got the same error until I  
double checked the model I was associating with ARMailer and found I  
had it pointing to my personal email-forming class, not the blank  
Email class ARMailer desired. Once that was corrected, the error went  
away and I’ve been firing emails with no problem.

On Mar 20, 2:43 pm, John S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
