$body = "<h1>Content message</h1>";
$headers = "MIME-Version: 1.0\r\n";
$headers.= "Content-Type: text/html;charset=utf-8\r\n";
$headers .= 'From: Sender <sender@example.com>' . "\r\n";
if( mail($to, $sudject, $body, $headers) ){
echo "The message was sent";
}else{
echo "The message was not sent";
}
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.