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
|
<?
//destinataire :
$address = <a href="mailto:a@b.fr">a@b.fr</a>;
// sujet :
$subject = $_POST['sujet'];
// message :
$texte="<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">
<HTML><HEAD><TITLE>Document sans titre</TITLE>
<META http-equiv=Content-Type content=\"text/html; charset=iso-8859-1\">
<META content=\"MSHTML 6.00.2900.2668\" name=GENERATOR></HEAD>
<BODY>
<TABLE cellSpacing=0 cellPadding=0 width=672 border=0>
<TBODY>
<TR>
<TD width=119><A
href=\"<A href="http://www.alfa.fr/index.html\"><IMG">http://www.alfa.fr/index.html\"><IMG
src=\"C:/Program Files/EasyPHP1-8/www/Nouveau dossier/logo.gif\" width=\"119\" height=\"104\" border=\"0\"></A></TD></TR></TBODY></TABLE>";
$fin="</BODY></HTML>";
// D'autres en-têtes : errors, From cc's, bcc's, etc :
$headers= 'From:<no-reply@alfa.fr>'."\n";
// Pour envoyer du mail au format html, vous pouvez configurer le type content-type :
$headers .='Content-Type: text/html; charset="iso-8859-1"'."\n";
$headers .='Content-Transfer-Encoding: 8bit';
//envoi du mail :
mail($address, $subject, $texte, $headers); |
Partager