I want to apply a layout to all the mails going from my application.
I created a layout tempalte file named mail.rhtml in the ‘layout’
directory.
Now where should i specify the layout details to incorporate them in
mail and how?
Hi Priya
In the controller you have to specify at the top like “layout “mail””
Dear Abhi:
Thanks for ur reply…
I tried it … bt didnt work… I mean the mail was all the same…
Also writing it on top of the controller will apply this to all the
actions. but i want it just for a specific action…
there in the link there is a section called partial layout . using that
we can implement differebnt layout for some views I think
Abhi:
Different layouts is not the need… What i need is… Applying the
layout should be reflected in the sent mail…
I know how to apply layouts in general… but now i want it specific to
‘send mail’ action.