HOla
Tengo un problema con un envio de email.
Necesito que send.php me recoja estas variables del archivo info.php
Porque cuando envio un correo me sale por ejemplo: DEAR $link_email -
y lo necesito asi: DEAR
[email protected]
**********************
Archivo info.php
<?
$link_email='
[email protected]';
$sitename='Wenpage Directory';
$webmaster='
[email protected]';
?>
**********************
este es el codigo send.php
**********************
<?
require ("info.php");?>
<?
//email
$destinatario = "$link_email";
$asunto = "Your Link is Added in $sitename";
$cuerpo = '
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Links</title>
</head>
<body>
DEAR $link_email
</body>
</html>
';
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: Mi Nombre <$webmaster>\r\n";
if(@mail($destinatario,$asunto,$cuerpo,$headers))
{
echo "An e-mail has been sent to <font color=blue>$link_email</font> informing them that their link has been validated.";
}
else
{
echo "$link_email Error";
}?>
***************************************
Gracias