- <?
- /*******************************************\
- *
- * [Anony]Mailer 1.0
- * Par : Fishbowl
- * Mail : dvs025@hotmail.com
- *
- *
- * Vous pouvez mofifier et redistribuer
- * ce script tant que vous voulez.
- * *
- \********************************************/
-
- //Ecriture de l'en-tête
-
- $headers = "From: $name \n";
- $headers .= "X-Sender: $name\r\n";
- $headers .= "X-Mailer: [Anony]mailer v1b\r\n";
- $headers .= "Return-Path: <$reply>\r\n";
-
- if($type="html"){
- $headers .= "Content-Type: text/html; charset=iso-8859-1\r\n"; }
- else{
- $headers .= "Content-Type: text/plain\r\n";
- }
- $headers .= "X-Priority: $priority\r\n";
- $headers .= "Cc: $Cc\r\n";
- $headers .= "Bcc: $Bcc\r\n";
- $headers .= "Date: $day1, $day2 $month $year $time $zone \r\n"; //ex : "Date: Tue, 22 Jul 2003 13:39:04 +0200"
-
- //Envoie du mail
- if(mail($to,$object,$msg,$headers))
-
- {
- $index="index.html"; //page de retour si tout se passe bien
- $retour="mail.html"; //Page de retour en cas d'échec de l'envoi
-
- //Envoie du mail réussi
- echo <<< HTML
- <html>
- <head>
- <title>[Anony]Mailer</title>
- </head>
- <body>
- <font color="#66666" size="4"><b>[Anony]Mailer</b></font>
- <br><br><font color="#33333"><b>Mail envoyé avec succès.</b></font>
- <br><a href="$index">Retour</a>
- </body>
- </html>
- HTML;
- }
- else //Echec lors de l'envoi
- {
- echo <<< HTML
- <html>
- <head>
- <title>[Anony]Mailer</title>
- </head>
- <body>
- <font color="#66666" size="4"><b>[Anony]Mailer</b></font>
- <br><br>
- <font color="#33333"><b>Echec Lors de l\'envoi du mail.</b></font>
- <br><a href="$retour">Retour</a>
- </body>
- </html>
- HTML;
- }
-
- ?>
<?
/*******************************************\
*
* [Anony]Mailer 1.0
* Par : Fishbowl
* Mail : dvs025@hotmail.com
*
*
* Vous pouvez mofifier et redistribuer
* ce script tant que vous voulez.
* *
\********************************************/
//Ecriture de l'en-tête
$headers = "From: $name \n";
$headers .= "X-Sender: $name\r\n";
$headers .= "X-Mailer: [Anony]mailer v1b\r\n";
$headers .= "Return-Path: <$reply>\r\n";
if($type="html"){
$headers .= "Content-Type: text/html; charset=iso-8859-1\r\n"; }
else{
$headers .= "Content-Type: text/plain\r\n";
}
$headers .= "X-Priority: $priority\r\n";
$headers .= "Cc: $Cc\r\n";
$headers .= "Bcc: $Bcc\r\n";
$headers .= "Date: $day1, $day2 $month $year $time $zone \r\n"; //ex : "Date: Tue, 22 Jul 2003 13:39:04 +0200"
//Envoie du mail
if(mail($to,$object,$msg,$headers))
{
$index="index.html"; //page de retour si tout se passe bien
$retour="mail.html"; //Page de retour en cas d'échec de l'envoi
//Envoie du mail réussi
echo <<< HTML
<html>
<head>
<title>[Anony]Mailer</title>
</head>
<body>
<font color="#66666" size="4"><b>[Anony]Mailer</b></font>
<br><br><font color="#33333"><b>Mail envoyé avec succès.</b></font>
<br><a href="$index">Retour</a>
</body>
</html>
HTML;
}
else //Echec lors de l'envoi
{
echo <<< HTML
<html>
<head>
<title>[Anony]Mailer</title>
</head>
<body>
<font color="#66666" size="4"><b>[Anony]Mailer</b></font>
<br><br>
<font color="#33333"><b>Echec Lors de l\'envoi du mail.</b></font>
<br><a href="$retour">Retour</a>
</body>
</html>
HTML;
}
?>