I'm working on converting a large script written in ColdFusion to PHP. The CF was setup to send emails by including seperate CFM files which included all the HTML that the email was supposed to have.
The method I've used before for mailing in PHP is class.phpmailer.php - and I don't know how it is possible to take a large chunk of formatted HTML and insert it into the "body" of the email object.
How can I do this?
ie:
themail.htm =
<html>
<body>
<h1> this is the body of the email </h1>
<BR>
<BR>
<h4> this is the footer of the email </h4>
</body>
</html>
How can I stick the contents of themail.htm into a mail objects body?
And the other question is, can it be the contents of a php file that dynamically generates the HTML?
Help please?? 😕