I currently have set up a template html page to email out to users, problem is that when i send it it puts “/” in front of all the " 's and breaks the links and images any way to change this here is partial code.
<?php
if (file_exists(“email-template/email.html”)) {
$tpl = htmlspecialchars(implode("", file(“email-template/email.html”)));
}
$to = “$too”;
$from = “test@blah.com”;
$subject = “$sub”;
$message = “$tpl”;
$headers = "From: $from
";
$headers .= "Content-type: text/html
";
$success = mail($to, $subject, $message, $headers);
if ($success)
echo “The email to $to from $from was successfully sent”;
else
echo “An error occurred when sending the email to $to from $from”;
?>
oh $tpl is being displayed in a textarea so user can update/view what he is sending
i also have it pulling the html from a mysql database so i tryed this pulling template method both seem to mail with the / 's before all the " 's i also tryed renaming all the " 's to teir respected name &bla; name still had an issue
any help would be most appreciative.