Mailer question

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

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

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

Cheers,
Elle

On Oct 27, 8:23 am, Frederick C. [email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs