# ActionMailer Caching

**URL:** <https://www.ruby-forum.com/t/actionmailer-caching/192549>\
**Category:** Rails\
**Created:** [August 1, 2010, 9:53pm UTC](https://www.ruby-forum.com/t/actionmailer-caching/192549 "2010-08-01T21:53:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![flnative](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/5daacb/32.png) [@flnative](https://www.ruby-forum.com/u/flnative)\
**Post date:** [August 1, 2010, 9:53pm UTC](https://www.ruby-forum.com/t/actionmailer-caching/192549/1 "2010-08-01T21:53:18Z")

</div>

Hi everyone

I’ve a big problem with sending a mail over ActionMailer::Base (HTML  
mail). I deploy my app with capistrano (2.5.9) and use passenger  
(2.2.15) / apache as webserver. But sometimes, when a send a mail, it  
takes an old template (of an old release of capistrano) and encode the  
content not to html. The template has the extension …text.html.haml.  
The email receive every customer as followed:

Dear Customer

...

It’s very strange, because the symptom occurs not every time of sending.  
Is it possible, that a compontent in the mail sending-chain is caching  
an old template and doesn’t encode it?

I’ve no plan whats wrong! Please help me…  
Thanks!
