I have an automated email system set up to send an html file as an email. I bring that file into my email with PHPMailer, using
$mail->msgHTML(file_get_contents('mailContent.html'), dirname(__FILE__));
In the PHP source, before I add the mailContent.html, I have a variable $name='John Appleseed'
(it is dynamic, this is just an example)
In the HTML file, I'm wondering if there is a way that I can use this $name
variable in a <p>
tag.