so i'm trying to do a do a html mail sytem and my html i want to be a template, stored in a separate file like :
<div clas="headr"></div>
<div class="content"></div>
<div class="footer"></div>
when i want to send the mail i want my mail content(from the input form) to go in that div.content and then to send the whole html(template + submitted text). what is the best way to do that? i'm thinking to something like:
- import the template into my php that sends the mail
- find the div with a "content" class and add the submitted text into it
- send mail
but i don't know how to "find" that div and write the submitted text into it.