Configurar y utilizar la funcion MAIL()

From: Date: Thu, 31 May 2007 03:02:16 +0000
Subject: Configurar y utilizar la funcion MAIL()
Groups: php.general.es 
Request: Send a blank email to general-es+get-60877@lists.php.net to get a copy of this message
Hola Grupo!!! Necesito que me den una mano pues estoy trabado!!! Estuve leyendo la configuración y escribiendo algo de código básico y no logro poner en funcionamiento la función mail, cuando ejecuto el código la funcion termina OK pero el mail no me llega nunca y no sé qué puede estar mal.....alguien podría ayudarme por favor?? Aquí les dejo la configuración de php.ini y el pequeño código de prueba que escribí extracto php.ini [mail function] ; For Win32 only. SMTP = smtp.fibertel.com.ar ; for Win32 only smtp_port = 25 sendmail_from= caalexandros@fibertel.com.ar ; for Win32 only ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). ;sendmail_path = "c:\windows\system32\sendmail -t -i" ; Force the addition of the specified parameters to be passed as extra parameters ; to the sendmail binary. These parameters will always replace the value of ; the 5th parameter to mail(), even in safe mode. ;mail.force_extra_parameters = y aquí les dejo el pequeño código que escribi: <? $body="<em>HTML</em> formatted <strong>PRUEBA</strong"; $headers = "From: caalexandros@fibertel.com.ar \r\n"; $headers.= "Content-Type: text/html; charset=ISO-8859-1 "; $headers .= "MIME-Version: 1.0 "; $mail_sent = mail("meteoro62@hotmail.com", "An HTML Message", $body, $headers); echo $mail_sent ? "Mail sent" : "Mail failed"; ?> Muchas Gracias!!!!!!

« previous php.general.es (#60877) next »