Im having a formatting issue with mail().
My simple script looks like:
$key =
blah@blah.com;
$subject = "My membership";
$message_to_send = "<strong>Hello".$key."</strong>";
mail($key, $subject, $message_to_send, "From:
blah@blah.com");
When it comes to my email client it appears as:
<strong>Hello
blah@blah.com</strong>
Instead of:
Hello
blah@blah.com
I have also tried adding <html> and <body> tags but that doesn't seem to do anything.
I get other HMTL messages from amazon and such but it would appear that one generated from mail() is sending only raw text.
How do I get it to format HTML based message?
Posts: n/a