EmailModel - Unexpected character "$"? This is probably a newby question, but, I am just trying to add a basic email send test and my twig page does not like the dollar signs.  Is EmailModel built-in to craft or is there a plugin I need?

I am just trying to add this code to a basically empty twig page:

$email = new EmailModel();
$email-&gt;subject = "Thanks!";
$email-&gt;htmlBody = "&lt;h1&gt;Congratulations!&lt;/h1";
$email-&gt;htmlBody .= "&lt;p&gt;Hello World&lt;/p&gt;";
$email-&gt;fromEmail = "email@domain.com";


thanks for the help...

Chip
You can't use PHP in a Twig template.

A plugin Craft plugin would be the easiest way to pull off what you're looking for.  I've added an answer to your other related question.