Hola a todos estoy intentando instalaar y configurar sendmail en wampserver y no se que estoy haciendo mal, pero me devuelve:
Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\verano\correo\prueba.php on line 3
He instalado el sendmail en www, también he probado a hacerlo en c:\, luego he configurado los archivo ini de php y sedmail. Los he dejado asi:
Archivo ini de PHP:
[mail function]
; For Win32 only.
;
http://php.net/smtpSMTP = smtp.gmail.com
;
http://php.net/smtp-portsmtp_port = 465
; For Win32 only.
;
http://php.net/sendmail-fromsendmail_from =
XXXXXXXXXXX@gmail.com; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;
http://php.net/sendmail-pathsendmail_path = C:\wamp\sendmail\sendmail.exe
Luego el archivo ini del sendmail asi:
smtp_server=smtp.gmail.com
; smtp port (normally 25)
auth_username=xxxxxxxxx@gmail.com
auth_password=xxxxxxxxx
Pero nada me sigue devolviendo el mismo error. El caso que yo en Linux tengo instalado servidor postfix, y me funciona.