bestlinux
(usa Ubuntu)
Enviado em 28/11/2005 - 13:10h
Ola,
Tente utilizar o seguinte codigo, para enviar formato HTML e formato Texto:
<?
$messageHTML = <html><head> Legal </head></html>;
$messageNotHTML= "Teste";
$boundary = md5(time().rand(1,100));
$headers = "MIME-Version: 1.0
Content-Type: multipart/alternative; boundary=".$boundary."
X-Mailer: PHPmailer
From: Usuario
";
$message = "
--$boundary
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
$messageNotHTML
--$boundary
--$boundary
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
$messageHTML
--$boundary--
";
$contactemail="seuemail@provedor.com.br";
$contactname="Usuario";
$subject="Teste";
if(mail($contactemail, $subject, $message, $headers)) {
echo "enviado";
} else {
echo "nao enviado";
}
?>
Falow !