Hi all,
I made a script where I type a subject and body in a form. When it is passed to the next page (where i actually do the emailing), I can't figure out how to format the text.
I have done this so far:
// my stupid way of formatting
$dio = "<html><pre>";
// variables passed : $subject, $body
$body = $dio . $body;
// header stuff
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html ; charset=iso-8859-1\r\n";
$headers .= "From: MAA <ttu_maa@yahoo.com>\r\nBcc: $to";
// mesage sent!
print "Message Sent!";
mail($to, $subject, $body, $headers);
I am satisfied with this, but when it posts to the email, all the apostrophies are preceeded by a .
For example, don't appears as don\'t.
Am I doing my emailer in a stupid manner? What I am trying to do is make a simple email script.
Thanks in advance!
EDIT: The backslash also appears when I use ". Such as I am \"cool\".
EDIT 2: Are there any other symbols that cause this?