Ver Mensaje Individual
  #1 (permalink)  
Antiguo 22/12/2011, 07:49
leophp
 
Fecha de Ingreso: julio-2002
Ubicación: stgo rec
Mensajes: 438
Antigüedad: 24 años, 1 mes
Puntos: 3
Pregunta Usar autentificacion con la funcion mail()

Hola

Estoy usando la funcion mail() para el envio de correo desde un servidor

Windows Server 2008 con Apache 2.2.21 y PHP 5.3.8

Cuando ejecuto la pagina que envia el email aparece el siguiente mensaje:

Warning: mail() [function.mail]: SMTP server response: 503 valid RCPT command must precede DATA in C:\Apache2.2\htdocs\intranet\srv\login_srv.php on line 173

Por lo que vi, el error corresponde a que la cuenta de correo requiere la autentificación, pero la pregunta es, como le envio los paramtros o como configuro el archivo php.ini para este efecto.

La configuracion de php.ini es la siguiente:
Código PHP:
[mail function]
; For 
Win32 only.
; 
http://php.net/smtp
SMTP = mail.laempresa.cl
; http://php.net/smtp-port
smtp_port = 26

; For Win32 only.
; 
http://php.net/sendmail-from
sendmail_from = contacto@laempresa.cl

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
; 
http://php.net/sendmail-path
;sendmail_path =

; 
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 =

; 
Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
mail
.add_x_header = On

; The path to a log file that will log all mail() calls. Log entries include
; 
the full path of the script, line number, To address and headers.
;
mail.log = 
Saludos
__________________
Saludos
Leo