Web Hosting Talk







View Full Version : PHP mail() funtion


brandon
04-16-2002, 03:03 AM
I am trying to use PHP mail() funtion to send email as an acknowledgement in HTML format. During my testing I alway received the message in plain text. Thus the email received is as follow: I just want the word "This is a test" displayed in selected formated font/size instead of the actual HTML coding.

Is there any coding I have to add inorder to display correctly.
Any help would very much appreciated.

Thank you,
Brandon

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<font face="Verdana, Arial, Helvetica, sans-serif" size="+3">This a test </font>
</body>
</html>



This is a test

phpjames
04-16-2002, 04:21 AM
Brandon,
See http://www.webhostingtalk.com/showthread.php?s=&threadid=40756

brandon
04-16-2002, 04:28 AM
Thank you phpjames,

I will try out this coding format:
code
:--------------------------------------------------------------------------------
html = "MIME-Version: 1.0\r\nContent-type: text/html; $newsletter";
mail("$member[email]", "$subject", "$html", "FROM: $ownersemail");
--------------------------------------------------------------------------------