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= kool.sri@gmail.com
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 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.