Here we go, the mod for the Preview button for the HTML, note variables like $username are not parsed in the preview.
Find:
PHP Code:
maketableheader("Preview of your TEXT email");
Above it add:
PHP Code:
?><tr class='firstalt' valign='top'>
<td><p></p></td><td><p>
<SCRIPT LANGUAGE="JavaScript">
function displayHTML() {
var inf = document.name.message.value;
win = window.open(", ", 'popup', 'width=800,height=500,toolbar=no,status=yes,scrollbars=yes');
win.document.write("" + inf + "");
}
</script>
<input type='button' value='Preview' accesskey='p' onclick='javascript:displayHTML()'></p></td></tr>
<?php
Thats it, you then get a preview button right under the HTML text area
Note: vB puts a space between java and script here: onclick='java script:displayHTML It should be javascript, one word