Ver Mensaje Individual
  #4 (permalink)  
Antiguo 14/10/2010, 09:16
Avatar de Algadar
Algadar
 
Fecha de Ingreso: abril-2009
Mensajes: 115
Antigüedad: 15 años, 10 meses
Puntos: 1
Respuesta: Problemas con mail()

emprear.

te muestro exactamente lo que estoy utilizando.

<?php
$fech = date("Y/m/d h:m:s");

function enviar_correo() {
$mail='[email protected]';

$header = 'From: ' . $mail . " \r\n";
$header .= "X-Mailer: PHP/" . phpversion() . " \r\n";
$header .= "Mime-Version: 1.0 \r\n";
$header .= "Content-Type: text/plain";

$mensaje = "Solicitud realizada por FELIX \r\n";
$mensaje .= "Telefono: \r\n";
$mensaje .= "e-mail: \r\n";
$mensaje .= "Contrato: \r\n";
$mensaje .= "Propietario: \r\n";
$mensaje .= "Difunto: \r\n \r\n";
$mensaje .= "Reclamo/Sugerencia: \r\n \r\n";
$mensaje .= "Mensaje que se va a enviar \r\n \r\n";
$mensaje .= "Enviado el " . date('d/m/Y', time()). " \r\n \r\n";
$mensaje .= "Motivos de Reclamo: " . " \r\n \r\n";
mail($mail, $asunto, utf8_decode($mensaje), $header);
}
enviar_correo();
?>
<!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=utf-8" />
<title>Envio de correo</title>
</head>

<body>

</body>
</html>

y esta es la configuración en el php.ini

[mail function]
; For Win32 only.
SMTP = smtp.gmail.com
smtp_port = 465

; For Win32 only.
;sendmail_from = [email protected]
__________________
Deseo poco y lo poco que deseo, lo deseo poco.!
De Colores.