RE: [PHP] How Can I send mail in php in HTML format?

From: Date: Thu, 28 Jul 2005 18:40:16 +0000
Subject: RE: [PHP] How Can I send mail in php in HTML format?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-219548@lists.php.net to get a copy of this message
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.

« previous php.general (#219548) next »