# Mailer question

**URL:** <https://www.ruby-forum.com/t/mailer-question/118431>\
**Category:** Rails\
**Created:** [October 26, 2007, 9:25pm UTC](https://www.ruby-forum.com/t/mailer-question/118431 "2007-10-26T21:25:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![elle](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/ccd318/32.png) [@elle](https://www.ruby-forum.com/u/elle)\
**Post date:** [October 26, 2007, 9:25pm UTC](https://www.ruby-forum.com/t/mailer-question/118431/1 "2007-10-26T21:25:13Z")

</div>

Hi,

If I already have a Mailer class with a contact\_message method for an  
enquiry form, can I use the same Mailer, just add methods to it if I  
want to send a confirmation email when an order i splaced? or should I  
create a new mailer?

Thanks,  
Elle

---

<div class="post-metadata">

**Author:** ![elle](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/ccd318/32.png) [@elle](https://www.ruby-forum.com/u/elle)\
**Post date:** [October 26, 2007, 11:24pm UTC](https://www.ruby-forum.com/t/mailer-question/118431/2 "2007-10-26T23:24:40Z")

</div>

On 26 Oct 2007, at 20:24, elle wrote:

> Hi,
> 
> If I already have a Mailer class with a contact\_message method for an  
> enquiry form, can I use the same Mailer, just add methods to it if I  
> want to send a confirmation email when an order i splaced? or should I  
> create a new mailer?

Yes you can, but that doesn’t necessarily mean you should (in the  
same way that you could have a single controller containing all of  
your app’s actions but that would also be a bad idea).

Fred

---

<div class="post-metadata">

**Author:** ![elle](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/ccd318/32.png) [@elle](https://www.ruby-forum.com/u/elle)\
**Post date:** [October 26, 2007, 11:25pm UTC](https://www.ruby-forum.com/t/mailer-question/118431/3 "2007-10-26T23:25:50Z")

</div>

Thanks Fredrik. That answers my question.  
I will create another OrderMailer.

Cheers,  
Elle

On Oct 27, 8:23 am, Frederick C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
