
Biakkobar - 2009-08-20 11:02:09 -
In reply to message 25 from saroj
You just make an additional script for header to detect your mail format is html. the setting just like this :
if($smtp->SendMessage(
$from,
array(
$to
),
array(
"MIME-Version: 1.0",
"Content-type: text/html; charset=iso-8859-1",
"From: $from",
"To: $to",
"Subject: Testing Manuel Lemos' SMTP class",
"Date: ".strftime("%a, %d %b %Y %H:%M:%S %Z")
),
"
<html>
<head>
<title>Pendaftaran Berhasil</title>
</head>
<body>
<h3 class='style1'><font color='#009900'>PENDAFTARAN BERHASIL!</font></h3>
<p>Selamat $userNama, anda berhasil melakukan pendaftaran di HargaLelang.com.<br>
Untuk dapat menggunakan account anda, silahkan confirmasi pendaftaran anda dengan mengklik link dibawah ini!<br /><br />
klik link : <a href='http://www.hargalelang.com/konfirmasi_$userDaftar.html'>http://www.hargalelang.com/konfirmasi_$userDaftar.html</a> atau <a href='http://www.hargalelang.com/konfirmasi_$userDaftar.html'>klik disini</a> untuk melakukan aktivasi</p>
<p>Terima Kasih.</p>
<p>Support HargaLelang.com </p>
</body>
</html>
"))
echo "Message sent to $to OK.\n";
else
echo "Cound not send the message to $to.\nError: ".$smtp->error."\n";
Regards