kuul13 Posted August 10, 2009 Share Posted August 10, 2009 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 Quote Link to comment Share on other sites More sharing options...
sawade Posted August 10, 2009 Share Posted August 10, 2009 Can we see a code snippet from the php file that is trying to send the email? Quote Link to comment Share on other sites More sharing options...
kuul13 Posted August 11, 2009 Author Share Posted August 11, 2009 Hi thanks for the response.. I was able to solve it last night. I guess the issue was with the firewall. The code is now working. Regards Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.