Ver Mensaje Individual
  #3 (permalink)  
Antiguo 19/04/2005, 15:52
Avatar de Gabriel0702
Gabriel0702
 
Fecha de Ingreso: febrero-2005
Mensajes: 155
Antigüedad: 19 años, 1 mes
Puntos: 0
Yo lo hago así:

Dentro de los datos que envías debes incluir las cabeceras siguientes:

Código:
Subject: Página
From:<[email protected]>
Reply-To:<[email protected]>
Content-Type: text/html; charset=ANSI_X3.4-1968
Content-Transfer-Encoding: quoted-printable
charset: iso-8859-1 
y luego después escribes el mensaje normal, algo así:

Código:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.or
g/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Documento sin t&iacute;tulo</title>
</head>

<body>
esta es una <strong>prueba</strong> de <em>algo</em>
</body>
</html>
yo lo probé con SMTP de windows y sí me funcionó, te muestro el proceso completo:

Código:
helo washydoro
250 Washydoro Hello [127.0.0.1]
mail from:<[email protected]>
250 2.1.0 [email protected] OK
rcpt to:<[email protected]>
250 2.1.5 [email protected]
data
354 Please start mail input.
Subject: Página
From:<[email protected]>
Reply-To:<[email protected]>
Content-Type: text/html; charset=ANSI_X3.4-1968
Content-Transfer-Encoding: quoted-printable
charset: iso-8859-1

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.or
g/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Documento sin t&iacute;tulo</title>
</head>

<body>
esta es una <strong>prueba</strong> de <em>algo</em>
</body>
</html>
.
250 Mail queued for delivery.
quit
221 Closing connection. Good bye.
Espero que te sirva, si está muy complejo, escribes porfa...