# Ar\_mailer and missing template in production environment

**URL:** <https://www.ruby-forum.com/t/ar-mailer-and-missing-template-in-production-environment/159375>\
**Category:** Rails\
**Created:** [February 3, 2009, 11:48pm UTC](https://www.ruby-forum.com/t/ar-mailer-and-missing-template-in-production-environment/159375 "2009-02-03T23:48:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Borja\_MartSSS\_n](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/f08c70/32.png) [@Borja\_MartSSS\_n](https://www.ruby-forum.com/u/Borja_MartSSS_n)\
**Post date:** [February 3, 2009, 11:48pm UTC](https://www.ruby-forum.com/t/ar-mailer-and-missing-template-in-production-environment/159375/1 "2009-02-03T23:48:45Z")

</div>

Hi,  
I’m trying to use ar\_mailer to send newsletters in my application. The  
thing is that what I’ve done works fine while I’m under development mode  
but when I try to run it in my server in production mode I become the  
following error(it also appears after switching webrick to run in  
production mode):  
[http://pastie.org/377011](http://pastie.org/377011)

I’m using Rails 2.2.2

Thanks in advance

Regards

–  
/\*\*

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

---

<div class="post-metadata">

**Author:** ![Borja\_MartSSS\_n](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/f08c70/32.png) [@Borja\_MartSSS\_n](https://www.ruby-forum.com/u/Borja_MartSSS_n)\
**Post date:** [February 4, 2009, 12:21am UTC](https://www.ruby-forum.com/t/ar-mailer-and-missing-template-in-production-environment/159375/2 "2009-02-04T00:21:33Z")

</div>

Is the template there, on the production machine?

Blog: [http://random8.zenunit.com/](http://random8.zenunit.com/)  
Learn rails: [http://sensei.zenunit.com/](http://sensei.zenunit.com/)

---

<div class="post-metadata">

**Author:** ![Borja\_MartSSS\_n](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/f08c70/32.png) [@Borja\_MartSSS\_n](https://www.ruby-forum.com/u/Borja_MartSSS_n)\
**Post date:** [February 4, 2009, 12:24am UTC](https://www.ruby-forum.com/t/ar-mailer-and-missing-template-in-production-environment/159375/3 "2009-02-04T00:24:29Z")

</div>

yes, it’s there.  
as I mentioned, while working in my machine, if I restart Webrick and  
switch to production mode, it just stops working and when I switch back  
to development mode, it works again…

Julian L. escribiÃ³:

> > thing is that what I’ve done works fine while I’m under development  
> > Regards

–  
/\*\*

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

---

<div class="post-metadata">

**Author:** ![Borja\_MartSSS\_n](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/f08c70/32.png) [@Borja\_MartSSS\_n](https://www.ruby-forum.com/u/Borja_MartSSS_n)\
**Post date:** [February 4, 2009, 11:45pm UTC](https://www.ruby-forum.com/t/ar-mailer-and-missing-template-in-production-environment/159375/4 "2009-02-04T23:45:36Z")

</div>

I’m having the same problem. It’s also affecting using the normal  
ActionMailer.  
I found a few interesting links:  
[http://www.ruby-forum.com/topic/158954](http://www.ruby-forum.com/topic/158954)  
[http://developer.apple.com/DOCUMENTATION/DARWIN/Reference/ManPages/man1/postfix.1.html](http://developer.apple.com/DOCUMENTATION/DARWIN/Reference/ManPages/man1/postfix.1.html)

I would be interested in any solutions.

Gary.

---

<div class="post-metadata">

**Author:** ![Borja\_MartSSS\_n](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/f08c70/32.png) [@Borja\_MartSSS\_n](https://www.ruby-forum.com/u/Borja_MartSSS_n)\
**Post date:** [February 5, 2009, 10:33am UTC](https://www.ruby-forum.com/t/ar-mailer-and-missing-template-in-production-environment/159375/5 "2009-02-05T10:33:10Z")

</div>

Has anyone got a solution to this problem. I am have the same thing  
happen  
to me right now.

Thank you,

Sean McGilvray  
[http://www.transferhome.net](http://www.transferhome.net)

LaughingNinja wrote:

> Gary.
> 
> > > > mode

–  
View this message in context:  
[http://www.nabble.com/ar\_mailer-and-missing-template-in-production-environment-tp21820681p21842157.html](http://www.nabble.com/ar_mailer-and-missing-template-in-production-environment-tp21820681p21842157.html)  
Sent from the RubyOnRails Users mailing list archive at [Nabble.com](http://Nabble.com).
