I’m using this peice of code to seen emails to people who visit my website:
$first_name = stripslashes($row[‘first_name’]);
$email_address = stripslashes($row[’email_address’]);
$subject = “”;
$body = “$content”;
$headers = “From:[email protected]”
“X-Mailer: php”;
if (mail($email_address, $subject,$html_body, $headers))
{
echo “Message sent!”;
}
I have 2 questions
1)Can anyone explain to me what the $headers variable is for? Example:What is X-Mailer: php
2) I would like to make the font in the emails I send Bigger. The only way I can think of doing this is using html. But, when I embed html into my $body variable (example: $body=”<html><body><fontsize=”4″>$content</font></body></html>”?
the email says exactly whats in body, so the html is not rendered just spits out the tags and what’s in $content. Can someon explain how I might go about doing this?