1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
|
<?php
if (!isset($article)){$article="éééé àààà èèèè çççç àààà";}
utf8_decode ( $article );
require "PHPMailer-master/class.phpmailer.php";
$mail = new PHPmailer();
$mail->IsHTML(true);
$mail->Host='xxxx';
$mail->From='xxx';
$mail->AddAddress($email);
$mail->AddReplyTo('xxxx');
$mail->Subject='Aumone Confirmation Livre d\'or';
$mail->Body='
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns:v="urn:schemas-microsoft-com:vml">
<head>
<meta http-equiv="content-type" content="text/html" charset="utf-8" />
<meta name="viewport" content="width=device-width;initial-scale=1.0;maximum-scale=1.0;" />
</head>
<body style="background-image: url(http://www.aumone.fr/mails/carrelage.png); color: rgba(0,0,0,1);">
<img src="http://www.aumone.fr/mails/bordure.png" width="1" height="100" alt=""/>
<table width="800" border="0" align="center" cellpadding="0" cellspacing="0" >
<tbody>
<tr>
<td height="110" colspan="3" align="center" valign="baseline" background="http://www.aumone.fr/mails/top.png" ></td>
</tr>
<tr>
<td width="30" height="200" rowspan="3" align="center" background="http://www.aumone.fr/mails/cote.png"><h1> </h1></td>
<td width="728" height="20" align="center" background="http://www.aumone.fr/mails/papier_de_lin.png" style="font-size: 24px; font-family: Gotham, \'Helvetica Neue\', Helvetica, Arial, sans-serif; font-weight: bold; text-align: left;" >Salutations !</td>
<td width="30" rowspan="3" align="center" background="http://www.aumone.fr/mails/cote.png"> </td>
</tr>
<tr>
<td align="center" height="92" background="http://www.aumone.fr/mails/papier_de_lin.png" bgcolor="#B02B2D" style="font-weight: ; font-style: normal; color: rgba(0,0,0,1); font-size: 20px; font-family: \'Gill Sans\', \'Gill Sans MT\', \'Myriad Pro\', \'DejaVu Sans Condensed\', Helvetica, Arial, sans-serif;">Bonjour monsieur ou madame '.$pseudo[0].', vous avez entré un commentaire dans le livre d\'or de notre site <a href="http://www.aumone.fr">Aumone.fr</a> le '.$date.'. Votre message est le suivant : "' . $article . '" .Pour le confirmer et le rendre visible a tous vous devez confirmer votre email en cliquant sur le lien , ceci n\'est ni une farce ni un virus . On vous remercie beaucoups de participer !</td>
</tr>
<tr>
<td align="center" height="123" background="http://www.aumone.fr/mails/papier_de_lin.png" bgcolor="#B02B2D" style="font-weight: bold; font-style: italic; color: rgba(0,0,0,1); font-size: 20px;"><img src="http://www.aumone.fr/mails/check.png" width="300" height="100" alt=""/></td>
</tr>
<tr>
<td height="32" colspan="3" align="center" valign="middle" background="http://www.aumone.fr/mails/bottom.png"> </td>
</tr>
</tbody>
</table>
<img src="http://www.aumone.fr/mails/bordure.png" width="1" height="100" alt=""/>
</body>
</html>
';
if(!$mail->Send()){
echo $mail->ErrorInfo;
}
else{
echo 'Mail envoyé avec succès';
}
$mail->SmtpClose();
unset($mail);
?> |
Partager