heartcombo/mail_form

Email templates

mathlarocque opened this issue · 2 comments

Is there a way to have multiple template? Following your doc, I can create a template using a file in mail_form/contact.erb but apparently I can not create a second template... Is there an easy way to do so?

It depends, why do you want a second template for? Are you sending different emails and want them to have different templates? It was not designed for that case, it only allows for a single template since it's a single notifier.

What you could do though is to override the deliver! method which is responsible to actually trigger the notificar, and do something else.

Hope that helps.

This is a little late, but I had the same problem and solved it by adding a header which was picked up by ActionMailer.

Check here for an example of the solution: #48