You are here: RE: [PHP] How Can I send mail in php in HTML format? « PHP « IT news, forums, messages
RE: [PHP] How Can I send mail in php in HTML format?

Posted by "Programmer" on 11/14/16 11:22

You can use mail() to send html, but you need to set the headers first.
I hope this helps.

Jeremy Schreckhise

$email_addr = "whereto@go.biz";
$email_from = "foo@boo.com";

$email_subj = "About What";

// Set Content-type header

$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";

$email_mess = "<html><head></head><body>Stuff</body></html>";

ini_set('sendmail_from',$email_from);
mail($email_addr,$email_subj,$email_mess,$headers);


-----Original Message-----
From: Tomás Rodriguez Orta [mailto:admin@angerona.cult.cu]
Sent: Thursday, July 28, 2005 2:31 PM
To: php-general@lists.php.net
Subject: [PHP] How Can I send mail in php in HTML format?

Hello friends.

How Can I send mail from php in HTML format?.
I use the mail() function, but I dont know doing.somebody can I help me?


Best regards TOMAS


------------------------------------------------------------------------
-
Este correo fue escaneado en busca de virus con el MDaemon Antivirus
2.27
en el dominio de correo angerona.cult.cu y no se encontro ninguna
coincidencia.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация