Last Updated: February 25, 2016
·
304
· gianpispi

Mail In HTML e PHP

<?php

$to = "**MAIL A CUI INVIARE IL MESSAGGIO**";
$subject = "**OGGETTO DEL MESSAGGIO**";
$message = "
<html>
<head>
<title>**TITOLO DEL MESSAGGIO**</title>
<style>
**CSS**
</style>
</head>
<body>
    **MESSAGGIO IN HTML**
</body>
<html>
";

$headers = "MIME-Version : 1.0"."\r\n";
$headers .= "Content-type: text/html; charset=iso-8895-1";

if(mail($to, $subject, $message, $headers))
{
echo "Mail sent correctly";
}else{
echo "Mail doesn't sent";
}


?>

© Gianpiero Spinelli 2013

Il Mondo Apple News