# Using Soap4R and ActionMailer in one script

**URL:** <https://www.ruby-forum.com/t/using-soap4r-and-actionmailer-in-one-script/84851>\
**Category:** Rails\
**Created:** [February 8, 2007, 3:44am UTC](https://www.ruby-forum.com/t/using-soap4r-and-actionmailer-in-one-script/84851 "2007-02-08T03:44:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![erik](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/b5ac83/32.png) [@erik](https://www.ruby-forum.com/u/erik)\
**Post date:** [February 8, 2007, 3:44am UTC](https://www.ruby-forum.com/t/using-soap4r-and-actionmailer-in-one-script/84851/1 "2007-02-08T03:44:40Z")

</div>

Hi

Has anyone managed to get these two to work together in one script? I  
get

script/runner -e staging ‘load “lib/check\_balance.rb”’  
LoadError  
/usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/runner.rb:27:  
NoMethodError (NoMethodError)  
from  
/usr/lib/ruby/gems/1.8/gems/actionmailer-1.2.5/lib/action\_mailer/base.rb:338:in  
`create!’

which I guess is caused by both defining a similar send method ?

Soap4r seems to continue to work with ActionMailer there, but  
ActionMailer just raises the Error once I include the soap4r code.

Any ideas?

Erik

---

<div class="post-metadata">

**Author:** ![erik](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/b5ac83/32.png) [@erik](https://www.ruby-forum.com/u/erik)\
**Post date:** [February 6, 2009, 8:45am UTC](https://www.ruby-forum.com/t/using-soap4r-and-actionmailer-in-one-script/84851/2 "2009-02-06T08:45:39Z")

</div>

Erik wrote:

> Hi
> 
> Has anyone managed to get these two to work together in one script? I  
> get

> which I guess is caused by both defining a similar send method ?
> 
> Soap4r seems to continue to work with ActionMailer there, but  
> ActionMailer just raises the Error once I include the soap4r code.
> 
> Any ideas?
> 
> Erik

Hey…  
I’m facing the same problems…making actionmailer and soap4r to work  
together…  
Did you get any solution for it…  
Please let me know…  
Thank you…
