Este es el código:
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 = 'xxxxxxxxxx';
 
 
$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>";
 
$cabeceras = $mail->make_header(    $de, $para,    $asunto, 3, $de, "");
$cabeceras .= 'MIME-Version: 1.0' . "\r\n";
$cabeceras .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; 
 
if($para != ""){
  
  // Se incluye la librería necesaria para el envio
    require_once("fzo.mail.php");
    
  $mail = new SMTP("localhost", $user, $pass);
    
  // 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>   Código PHP:
   $cabeceras .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; 
    
DX
 

 
 

