Ver Mensaje Individual
  #4 (permalink)  
Antiguo 21/05/2005, 10:41
Saldu
Invitado
 
Mensajes: n/a
Puntos:
Gracias,me ha sido de muchísima ayuda sus mensajes,meaclararon muchas dudas...pero (estoy laburando en local,no se si tiene algo quever) no me hace funcionar,osea,me salta un error en la linea 45:

Warning: Failed to Receive in c:\apache\htdocs\mail.php on line 45

<?php
/* recipientes */
$para .= "[email protected]" . ", " ; // fijese en la comma
$para .= "[email protected]". ", ";
$para .= "[email protected]". ", ";
$para .= "[email protected]". ", ";
$para .= "[email protected]";// etc etc... ¿?

/* asunto */
$asunto = "Probando Php mailer";

/* mensaje */
$mensaje = '
<html>
<head>
<title>Prueba</title>
</head>
<body>
<p>Hola mundo!</p>
<table>
<tr>
<th>Persona</th><th>D&iacute;a</th><th>Mes</th><th>A&ntilde;o</th>
</tr>
<tr>
<td>Juan</td><td>3</td><td>August</td><td>1970</td>
</tr>
<tr>
<td>Sandra</td><td>17</td><td>August</td><td>1973</td>
</tr>
</table>
</body>
</html>
';

/* Para enviar correo HTML, puede definir la cabecera Content-type. */
$cabeceras = "MIME-Version: 1.0\r\n";
$cabeceras .= "Content-type: text/html; charset=iso-8859-1\r\n";

/* cabeceras adicionales */
$cabeceras .= "To:Tomy <[email protected]>, Kelly <[email protected]>\r\n";
$cabeceras .= "From: Yo mismo <[email protected]>\r\n";
$cabeceras .= "Cc: [email protected]\r\n";
$cabeceras .= "Bcc: [email protected]\r\n";
/* y ahora, enviarlo */
mail($para, $asunto, $mensaje, $cabeceras);
?>

No sé cuál es el problema,si alguien que sepa mucho me explica,se lo agradecía muchísimo,muchas gracias