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
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
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