I purchased an email template and customized it to what I want, but now I'm stuck on how to send it.
The template file is an entire html page with included fonts and even a stylesheet at the top (styletags actually, not an attached file) with mediaqueries and some font settings.
Do I send all of that? Including header tags and more? It's basically an entire html page.
How part of my emailscript is build now:
$texts = 'html template';
PHPMailer itself doesn't do anything special with HTML content (though
msgHTML reads your content to make a rough plain-text version). It sounds like you're just having trouble quoting inline content. You might like to try a different form of quoting called
nowdoc which will tolerate all kinds of quotes without a problem:
$texts = <<<'EOT' html template EOT; $mail->msgHTML($texts);
You could also save it in an external file and read it in when you need it, which also avoids quoting issues: