Jump to content

[SOLVED] Mail() not working for gmail a/c using WAMP/PHP on Windows XP


kuul13

Recommended Posts

Hi

 

I have gone through many many websites/forums/articles and followed all the steps mentioned in there to send emails to my gmail account but ALL IN VAIN  :(

Refered:

http://brettshaffer.com/how-to/php-sendmail-and-xampp-on-windows/

http://www.joshstauffer.com/tech/send-test-emails-with-wampserver/

 

I have a webpage on my local machine, contact.html that calls php file to send emails using mail(). As a webserver, I don't have access to IIS so I installed Apache. Actually I installed WAMP SERVER 2.0 on WIN XP along with sendmail. I changed the config files php.ini and sendmail.ini for sendmail_path and smtp_server/smtp_port/auth_username/auth_password.

 

I think the changes were so simple that I verified each change zillion time but still I don't see any email on my gmail account. The page says the email has been sent successfully but when I check the sendmail log it says "Connect timed out.".

 

I tried using: smtp.gmail.com with 465, 110 and even 80 port numbers. Although SSL port should be 465.

 

;sendmail.ini file
; configuration for fake sendmail
[sendmail]

smtp_server=smtp.gmail.com
smtp_port=465

; SMTPS (SSL) support
;   auto = use SSL for port 465, otherwise try to use TLS
;   ssl  = alway use SSL
;   tls  = always use TLS
;   none = never try to use SSL

smtp_ssl=ssl

;default_domain=mydomain.com

error_logfile=error.log

auth_username= [email protected]
auth_password= ******
[code]

[code]
;php.ini file
[mail function]
; For Win32 only.
;SMTP = 
;smtp_port = 25

; For Win32 only.
;sendmail_from = 

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
sendmail_path = "c:\wamp\sendmail\sendmail.exe -t"

;mail.force_extra_parameters =
[code]

I would really appreciate if someone can help me in resolving this issue.. It's almost two days I am banging my head into this 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.