Tema: Mandar mail
Ver Mensaje Individual
  #7 (permalink)  
Antiguo 16/09/2008, 18:25
seba21_pinar
 
Fecha de Ingreso: septiembre-2008
Mensajes: 4
Antigüedad: 15 años, 7 meses
Puntos: 0
Respuesta: Mandar mail

AHORA BUSQUE OTROS CODIGOS XO SIGO EN LA MISMA... SI MIRAN EN EL URL ENCONTRARAN UN NUEVO ERROR:

Warning: mail() [function.mail]: SMTP server response: 550 <[email protected]>, Recipient unknown in C:\Comunicaciones\AppServ\www\encontraloaqui\email 3.php on line 18

DONDE email3.php TIENE COMO CODIGO:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin t&iacute;tulo</title>
</head>

<body>
<?php
$sfrom=$mail; //cuenta que envia
$sdestinatario="[email protected]"; //cuenta destino
$ssubject="asunto"; //subject
$shtml="nombre"; //mensaje
$sheader="From:".$sfrom."\nReply-To:".$sfrom."\n";
$sheader=$sheader."X-Mailer:PHP/".phpversion()."\n";
$sheader=$sheader."Mime-Version: 1.0\n";
$sheader=$sheader."Content-Type: text/html";
mail($sdestinatario,$ssubject,$shtml,$sheader);
?>
</body>
</html>

Y contact_form.php TIENE COMO CODIGO:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin t&iacute;tulo</title>
</head>

<body>
<form method="post" action="email3.php">
Nombre: <input type="text" name="nombre" /><br />
Mail: <input type="text" name="mail" /><br />
<input type="submit" name="Enviar" />
</form>
</body>
</html>

DE VERDAD LES AGRADEZCO LA AYUDA XQ MI SABIDURIA ACERCA DE php ES NULA Y ESTOY TRATANDO D SER AUTODIDACTA

SALUDOS

SEBA