just trying to find an easyier way of doing php html emails instead of having to \" all the time and to get a real time preview.
is it possible to set the php mail code anf then just tell it to use a file with html code in it as the email? I've tried inlcude but it doesn't make the $message variable the included file. It just seems to inlcude it when you run the script
Many thanks! D.
$to = "dan@jynk.net";
$from = 'TOM FERRIE{website updates}';
$subject = 'TOM FERRIE{website updates}';
$headers .="Reply-To: $uname\r\nFrom:tomferrie@btinternet.com\r\n";
$headers .="MIME-Version: 1.0\n";
$headers .="Content-type: text/html;charset: iso-8859-1";
$headers .="<style type=\"text/css\">
<!--
body {
background-color: #333333;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #CCCCCC;
}
";
$message = include('email1.3b.php');
$ok = @mail($to, $subject, $message, $headers);
//// <<<