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
|
<?
$add="<a href="mailto:gama@teta.com">gama@teta.com</a>";
$subject ="ouioui";
$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></BODY></HTML>";
// D'autres en-têtes : errors, From cc's, bcc's, etc :
// Pour envoyer du mail au format html, vous pouvez configurer le type content-type :
$headers = 'From:<no-reply@teta.fr>'."\n";
$headers .= 'MIME-Version: 1.0'."\n";
$headers .= 'content-type: text/html; charset=iso-8859-1'."\n";
$headers .='Content-Transfer-Encoding: 8bit'."\n\n";
mail($add, $subject, $texte, $headers);
?> |