Très court extrait: envoyer un mail HTML avec PHP

Le code nécessaire et suffisante pour envoyer un simple email au format HTML en utilisant la commande mail() en PHP est:

1
2
3
4
5
6
7
/ / Préparation de la tête pour indiquer HTML
"MIME-Version: 1.0 \n " . $ Headers = "MIME-Version: 1.0 \ n".
"Content-Type: text / html; charset = UTF-8 \ n".
"De: Undolog.com <info@undolog.com> \ n".
"Cci: Copie <g.fazioli@undolog.com> \ n";

"Destinatario <info@e-lementi.com>" , "Oggetto della mail" , "<p>Corpo della mail in <strong>HTML</strong></p>" , $headers ) ; électronique («Destinataire <info@e-lementi.com>", "Objet du mail», «Corps du <p> email <strong> HTML </ strong> </ p>", $ headers);

Il n'y a aucun commentaire pour cet article

Laisser un commentaire

XHTML TAG PERMIS: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> CODE D'INSERTION:
 <pre></pre> // blocco generico <code></code> // blocco generico [cc_actionscript][/cc_actionscript] // Actionscript [cc_actionscript3][/cc_actionscript3] // Actionscript 3 [cc_css][/cc_css] // CSS Style Sheet [cc_html][/cc_html] // HTML [cc_js][/cc_js] // Javascript [cc_objc][/cc_objc] // Objective-C [cc_php][/cc_objc] // PHP [cc_sql][/cc_sql] // SQL 


Arrêtez SOPA