Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/09/2005, 05:09
antirco
 
Fecha de Ingreso: febrero-2003
Mensajes: 204
Antigüedad: 21 años, 2 meses
Puntos: 2
mailers mail()

tengo el codigo maestro que detallo al pie para envio de mails.
Y me funcionó correctamente.

Ahora estoy preparando otro proyecto con la misma funcion, y no me sale el e_mail.

No me acuerdo si se tenia que reconfigurar algun parametro del php.ini para que el mailer funcione.

Gracias


/* recipients */
$to = "Mary <[email protected]>" . ", " ; // note the comma
$to .= "Kelly <[email protected]>";

/* subject */
$subject = "Birthday Reminders for August";

/* message */
$message = '
<html>
<head>
<title>Birthday Reminders for August</title>
</head>
<body>
<p>Here are the birthdays upcoming in August!</p>
<table>
<tr>
<th>Person</th><th>Day</th><th>Month</th><th>Year</th>
</tr>
<tr>
<td>Joe</td><td>3rd</td><td>August</td><td>1970</td>
</tr>
<tr>
<td>Sally</td><td>17th</td><td>August</td><td>1973</td>
</tr>
</table>
</body>
</html>
';

/* To send HTML mail, you can set the Content-type header. */
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";

/* additional headers */
$headers .= "From: Birthday Reminder <[email protected]>\r\n";

$headers .= "Cc: [email protected]\r\n";
$headers .= "Bcc: [email protected]\r\n";

/* and now mail it */
mail($to, $subject, $message, $headers);