Ver Mensaje Individual
  #1 (permalink)  
Antiguo 04/01/2015, 05:31
eslomao
 
Fecha de Ingreso: noviembre-2014
Mensajes: 60
Antigüedad: 9 años, 5 meses
Puntos: 0
error envio email

hola chicos , tengo un problema de envio de email en local, he dado mil vueltas pero no lo soluciono, tengo el php ini de esta manera

Código PHP:
Ver original
  1. [mail function]
  2. ; For Win32 only.
  3. ; http://php.net/smtp
  4. ;SMTP = smtp.gmail.com
  5. ; http://php.net/smtp-port
  6. ;smtp_port = 465
  7.  
  8. ; For Win32 only.
  9. ; http://php.net/sendmail-from
  10. ;sendmail_from = xxxxx@gmail.com                 [B]aqui mi correo[/B]
  11.  
  12. ; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
  13. ; http://php.net/sendmail-path
  14.  sendmail_path = "C:\wamp\sendmail\sendmail.exe -t"
  15.  
  16. ; Force the addition of the specified parameters to be passed as extra parameters
  17. ; to the sendmail binary. These parameters will always replace the value of
  18. ; the 5th parameter to mail(), even in safe mode.
  19. ;mail.force_extra_parameters =
  20.  
  21. ; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
  22. mail.add_x_header = On
  23.  
  24. ; Log all mail() calls including the full path of the script, line #, to address and headers

y el sendmail asi
Código PHP:
Ver original
  1. ; configuration for fake sendmail
  2.  
  3. ; if this file doesn't exist, sendmail.exe will look for the settings in
  4. ; the registry, under HKLM\Software\Sendmail
  5.  
  6. [sendmail]
  7.  
  8.  
  9. smtp_server=smtp.gmail.com
  10.  
  11. ; smtp port (normally 25)
  12.  
  13. smtp_port=465
  14.  
  15. ; SMTPS (SSL) support
  16. ;   auto = use SSL for port 465, otherwise try to use TLS
  17. ;   ssl  = always use SSL
  18. ;   tls  = always use TLS
  19. ;   none = never try to use SSL
  20.  
  21. smtp_ssl=auto
  22.  
  23.  
  24. default_domain=gmail.com
  25.  
  26. ; log smtp errors to error.log (defaults to same directory as sendmail.exe)
  27. ; uncomment to enable logging
  28.  
  29. error_logfile=error.log
  30.  
  31. ; create debug log as debug.log (defaults to same directory as sendmail.exe)
  32. ; uncomment to enable debugging
  33.  
  34. debug_logfile=debug.log
  35.  
  36. ; if your smtp server requires authentication, modify the following two lines
  37.  
  38. auth_username= mi correo
  39. auth_password= mi password
  40.  
  41. ; if your smtp server uses pop3 before smtp authentication, modify the
  42. ; following three lines.  do not enable unless it is required.
  43.  
  44. ;pop3_server=
  45. ;pop3_username=
  46. ;pop3_password=
  47.  
  48. ; force the sender to always be the following email address
  49. ; this will only affect the "MAIL FROM" command, it won't modify
  50. ; the "From: " header of the message content
  51.  
  52. force_sender=
  53.  
  54. ; force the sender to always be the following email address
  55. ; this will only affect the "RCTP TO" command, it won't modify
  56. ; the "To: " header of the message content
  57.  
  58. force_recipient=
  59.  
  60. ; sendmail will use your hostname and your default_domain in the ehlo/helo
  61. ; smtp greeting.  you can manually set the ehlo/helo name if required
  62.  
  63. 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
  1. <?php
  2.  
  3. $para      = '[email protected]';
  4. $asunto    = 'Prueba de SMTP local';
  5. $mensaje   = 'Mensaje de prueba';
  6. $cabeceras = 'From: [email protected]' . "\r\n" .
  7.              'Reply-To: [email protected]' . "\r\n" .
  8.              'X-Mailer: PHP/' . phpversion();
  9.  
  10.  
  11. if(@mail($para, $asunto, $mensaje, $cabeceras)) {
  12.     echo 'Correo enviado correctamente';
  13. } else {
  14.     echo 'Error al enviar mensaje';
  15. }
  16. ?>

alguna solucion ??? , lei algo sobre mini relay , pero ni idea de como configurar el php.ini para ese programa , gracias