Mailer
Mailer
set_time_limit(0);
if($_POST['Manda'])
{
//EMAIL DO DESTINAT?RIO
$FromName = $_POST['FromName'];
$FromMail = $_POST['FromMail'];
//ASSUNTO DO EMAIL
$assunto = $_POST['assunto'];
//MENSAGEM DO EMAIL
$mensagem = $_POST['html'];
$mensagem = stripslashes($mensagem);
//CABE?ALHO DO EMAIL
$headers = "From: " . $FromName . " <" . $FromMail . ">\n";
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$headers .= "Content-Transfer-encoding: 8bit\n";
$headers .= "Reply-To: " . $FromName . " <" . $FromMail . ">\n";
$headers .= "Return-Path: " . $FromMail . "\n";
$headers .= "Message-ID: <".md5(uniqid(time()))."@$mailserver>\n";
$headers .= "X-Priority: 1\n";
$headers .= "X-MSmail-Priority: High\n";
$headers .= "X-Mailer: Microsoft Office Outlook, Build 11.0.5510\n";
$headers .= "X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441";
}
?>
<style type="text/css">
<!--
.Style1 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
}
.Style3 {font-family: Verdana, Arial, Helvetica, sans-serif}
.Style5 {font-size: 9px}
.Style14 {font-size: 9px; font-weight: bold; }
.Style15 {font-size: 10px; font-weight: bold; }
-->
</style>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<p class="Style5"></p>
<span class="Style5">
<style type="text/css">
td {
font-family:verdana;
color:#000000;
font-size:10px;
}
</style>
<?
if($_POST['Manda']) { ?>
</span>
<table width="59%" height="30" border="0" align="center" cellpadding="2"
cellspacing="1" bgcolor="#333333">
<tr>
<td bgcolor="#FFFFFF" class="Style1">
<?
foreach ($file as $mail) {
if(mail($mail, $assunto, $mensagem, $headers)) {
echo "<font color=green face=verdana
size=1>* $i - ".$mail."</font> <font color=green face=verdana
size=1>OK</font><br>";
} else {
echo "* $i ".$mail[$i]." <font
color=red>NO</font><br><hr>";
$i++;
}
}
?> </td>
</tr>
</table>
<span class="Style1">
<? } ?>
</span>
<form action="" method="post" name="form1" class="Style5">
<p align="center">
<img border="0"
src="http://francofoundation.8m.com/images/coollogo_com_51715019.gif" width="450"
height="134"></p>
</body></html>