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
| <?php
if (isset($_POST['envoyer'])) {
$nom=$_POST['nom']; $email=$_POST['email']; $prenom=$_POST['prenom']; $texte=htmlspecialchars(htmlentities($_POST['texte'])) ;
// Envoi d'email automatique au client//
include_once("PHPMailing/phpmailer/class.phpmailer.php")or die(mysql_error()) ;
ob_start(); ?>
<div>
<div style="width:700px; border:1px solid gray; margin: 5px; padding:5px; margin-left:150px;">
<img src="http://www.betterliving.com/user/fr/Comptetemporaire/compteclient/images/banniere.png" style="width: 700px; border:none;">
<?php echo $texte ;?>
</br>
</br></br> <b>Nous vous remercions de votre confiance.</b>
</br></br>
<div style="background-color:gray; border:1px solid gray;width:700px;"></div>
<p style="margin: 5px; padding:5px; width:700px;">
Veuillez ne pas répondre à cet e-mail. L'adresse do_not_reply@betterliving.com ne peut pas recevoir de réponse<br/><br><br/>
<b style="color:#02184b; text-align:center;">Copyright BETTER LIVING ©<?php echo date("Y");?>, tous droits réservé</b>
</br></br></br>Cordialement</p>
</div>
</div>
<?php $contenu = ob_get_clean();
$mail = new PHPmailer(); $mail->IsMail(); $mail->IsHTML(true);
$mail->From="do_not_reply@betterliving.com"; $mail->FromName="Nom expediteur";
$mail->AddAddress("{$_POST['email']}", "{$_POST['nom']} {$_POST['prenom']}");
$mail->AddAddress("adresses_email_destinataire1", "Identite destinataire1");
$mail->AddBCC("sghislain@websoft-enterprise.net", "SIATE Ghislain");
$mail->AddReplyTo("do_not_reply@betterliving.com", "BETTER LIVING");
$mail->Subject="OUVERTURE DE VOTRE COMPTE BANCAIRE";
$mail->Body=$contenu;
$mail->Send();
$mail->SmtpClose();
unset($mail);
}
;?> |
Partager