Código PHP:
Ver original
; For Win32 only. ; http://php.net/smtp ;SMTP = smtp.gmail.com ; http://php.net/smtp-port ;smtp_port = 465 ; For Win32 only. ; http://php.net/sendmail-from ;sendmail_from = xxxxx@gmail.com [B]aqui mi correo[/B] ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). ; http://php.net/sendmail-path sendmail_path = "C:\wamp\sendmail\sendmail.exe -t" ; 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 ; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
y el sendmail asi
Código PHP:
Ver original
; configuration for fake sendmail ; the registry, under HKLM\Software\Sendmail [sendmail] smtp_server=smtp.gmail.com ; smtp port (normally 25) smtp_port=465 ; SMTPS (SSL) support ; auto = use SSL for port 465, otherwise try to use TLS ; ssl = always use SSL ; tls = always use TLS ; none = never try to use SSL smtp_ssl=auto default_domain=gmail.com ; log smtp errors to error.log (defaults to same directory as sendmail.exe) ; uncomment to enable logging error_logfile=error.log ; create debug log as debug.log (defaults to same directory as sendmail.exe) ; uncomment to enable debugging debug_logfile=debug.log ; if your smtp server requires authentication, modify the following two lines auth_username= mi correo auth_password= mi password ; if your smtp server uses pop3 before smtp authentication, modify the ; following three lines. do not enable unless it is required. ;pop3_server= ;pop3_username= ;pop3_password= ; force the sender to always be the following email address ; this will only affect the "MAIL FROM" command, it won't modify force_sender= ; force the sender to always be the following email address ; this will only affect the "RCTP TO" command, it won't modify ; the "To: " header of the message content force_recipient= ; sendmail will use your hostname and your default_domain in the ehlo/helo ; smtp greeting. you can manually set the ehlo/helo name if required hostname=intel.com
pero siempre me sale error el enviar el mensaje, me tiene loco ya, esta es la parte de codigo que contiene el mensaje
Código PHP:
Ver original
<?php $asunto = 'Prueba de SMTP local'; $mensaje = 'Mensaje de prueba'; echo 'Correo enviado correctamente'; } else { echo 'Error al enviar mensaje'; } ?>
alguna solucion ??? , lei algo sobre mini relay , pero ni idea de como configurar el php.ini para ese programa , gracias