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
Written by Gianpiero Spinelli
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Php
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#