Here is an example of how I hard code the PHP currently:
(I removed most of the copy to make the HTML more readible)
Code: Select all
<?php
$email_message = '
<style>
/* body properties */
body {
background-color: #006699;
font-size : 100%; color : black;
}
/* Font settings for page elements */
body, ul, td, th, p, h1, h2, h3, h4, small, .small,
.tableTitle, .tableExtras {
font-family: verdana, arial, helvetica, sans-serif;
color: black;
font-size: 12px;
}
/* body border */
.bodyline { background-color: #cccccc; border: 1px #98AAB1 solid; }
</style>
<table width="100%" height="100%" border="0" align="center" cellpadding="5" cellspacing="0"> <tr>
<td valign="top" class="bodyline"><div align="center">
<br> <br> <br> <br> <br> <br> <br> <br> Hello, '.$userName.' <br><br><br> Click
<a href="'.$dynamicURL.'" target="_blank">
Here</a> to Complete Registration.</div></td> </tr></table>';
?>Code: Select all
<?php
"SELECT email from email_table where email_id = 1";
//GET RESULTS
//INSERT VALUES INTO returned email HTML
//????????
//send mail
mail();
?>