23/10/2007, 13:19
|
| Colaborador | | Fecha de Ingreso: mayo-2002 Ubicación: Funkyland
Mensajes: 8.433
Antigüedad: 22 años Puntos: 177 | |
Re: formato HTML lo hice, ahora tengo este código, pero tampoco.... Código PHP:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=windows-1250"> <meta name="generator" content="PSPad editor, www.pspad.com"> <title></title> </head> <body> <?php $user = '[email protected]'; $pass = 'xxx'; $urlget = $_GET['url']; $url = $_POST['url']; $de = $_POST['remitente']; $para = $_POST['para']; $asunto = $_POST['asunto']; $mensaje = $de . " te envio este link <br /><br /> <a href=\"$url\">Link</a>"; if($para != ""){ // Se incluye la librería necesaria para el envio require_once("fzo.mail.php"); $mail = new SMTP("localhost", $user, $pass); $cabeceras = $mail->make_header( $de, $para, $asunto, 3, $de, ""); //$cabeceras .= 'From: ' . $de . "\r\n"; $cabeceras .= 'MIME-Version: 1.0' . "\r\n"; $cabeceras .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; // Se envia el correo y se verifica el error $error = $mail->smtp_send($de, $para, $cabeceras, $mensaje, $de, ""); if ($error == "0"){ echo "Mail enviado con exito!<br /><br />" . $mensaje . "<br />"; }else{ echo $error; } } ?> <form action="enviamail.php" name="formulario" id="formulario" method="post"> <input type="hidden" name="url" value="<?php echo $urlget ?>"> Para <input type="text" name="para" id="para"><br /> Remitente <input type="text" name="remitente" id="remitente"><br /> Asunto <input type="text" name="asunto" id="asunto"><br /> <input type="submit" name="Enviar"> </form> </body> </html> realmente no se que hacer....es muy raro....gracias tunait! |