Sending email in PHP using XAMPP Lite 1.7.3 on Windows

I have been unsuccessfully trying to send an email in PHP on XAMPP Lite version 1.7.3 on Windows since yesterday. However today after going through some other blogs and a little bit of my own research I was able to successfully send an email to my gmail account :)

Here are the steps I followed:

  • Change in php.ini file. The file path is “C:\xampplite\php”  (if your XAMPP Lite folder is in C drive).
  1. Search for sendmail_path in your php.ini file and remove the semi colon before it. Then set it to sendmail_path = “C:\xampplite\sendmail\sendmail.exe -t” (Make sure to test this path on your system first and correct it if necessary)
  • Changes in sendmail.ini file. The file path is “C:\xampplite\sendmail” (if your XAMPP Lite folder is in C drive).
  1. Comment the “Mercury”  and “A free mail service example” contents as shown below:

# Mercury
#account Mercury
#host localhost
#from postmaster@localhost
#auth off

# A freemail service example
#account Hotmail
#tls on
#tls_certcheck off
#host smtp.live.com
#from [exampleuser]@hotmail.com
#auth on
#user [exampleuser]@hotmail.com
#password [examplepassword]

2. Add the account through which you want to send your mails. In my example I have configured the Gmail account as shown below:

account Gmail
tls on
tls_certcheck off
host smtp.gmail.com
from [your_gmail_username]@gmail.com
auth on
user [your_gmail_username]@gmail.com
password [your_gmail_password]

3. Set the default account to Gmail as shown below:

account default : Gmail

  • Now the required configuration changes have been done.  We need to restart the Apache Server to reflect the changes in php.ini file.
  • I have written a sample program below to check if mail is being sent.

<?php
$subject=”Hi There!!”;
$to=”<insert_receiver_mail_address>”;
$body=”This is my demo email sent using PHP on XAMPP Lite version 1.7.3″;
if (mail($to,$subject,$body))
echo “Mail sent successfully!”;
else
echo “Mail not sent!”;
?>

  • On executing the above program I was able to successfully send a mail to any receiver address from PHP using XAMPP Lite 1.7.3 on Windows.
  • Hope this blog helps you in case you have encountered a similar problem as I did. Please feel free to comment if this blog was useful to you.
# Mercury
#account Mercury
#host localhost
#from postmaster@localhost
#auth off# A freemail service example
#account Hotmail
#tls on
#tls_certcheck off
#host smtp.live.com
#from [exampleuser]@hotmail.com
#auth on
#user [exampleuser]@hotmail.com
#password [examplepassword]

About these ads
    • auie
    • March 14th, 2010

    hi ive already set up my php.ini ang sendmail.ini but i still cant send an email.

    here is the error i get

    Warning: mail() [function.mail]: Failed to connect to mailserver at “localhost” port 25, verify your “SMTP” and “smtp_port” setting in php.ini or use ini_set() in C:\xampplite\htdocs\testing.php on line 36

      • Pallavi
      • March 14th, 2010

      hi auie…could you paste your sendmail.ini file without your username and password? also could you paste some of the error messages in sendmail.log (in sendmail folder) and error.log (in apache/logs folder)? I was getting similar error earlier but after i made changes in sendmail.ini it worked fine for me.

        • auie
        • March 16th, 2010

        Ive followed what you have post here.

        this is my sendmail.ini

        # Example for a user configuration file

        # Set default values for all following accounts.
        defaults
        logfile “C:\xampplite\sendmail\sendmail.log”

        # Mercury
        #account Mercury
        #host localhost
        #from postmaster@localhost
        #auth off

        # A freemail service example
        #account Hotmail
        #tls on
        #tls_certcheck off
        #host smtp.live.com
        #from [exampleuser]@hotmail.com
        #auth on
        #user [exampleuser]@hotmail.com
        #password [examplepassword]

        account Gmail
        tls on
        tls_certcheck off
        host smtp.gmail.com
        from *****@gmail.com
        auth on
        user *****@gmail.com
        password ********

        account default : Gmail

        =========================================
        there no log file in sendmail folder

      • april
      • February 16th, 2011

      hello.. gud day… i have tried changing my php.ini but i can’t save it because theirs an error message

    • auie
    • March 16th, 2010

    is there anything that i should set in the xampp Control Panel?

    my xampp version
    XAMPP (Basis Package) version 1.7.3

    my OS

    Windows 7 ULTIMATE

    • auie
    • March 16th, 2010

    please email me here my add awied16@yahoo.com

      • hidayah
      • July 27th, 2012

      hey auie can u help me how to successfull to send mail from php.i got error lsame with u…
      Warning: mail() [function.mail]: Failed to connect to mailserver at “localhost” port 25, verify your “SMTP” and “smtp_port” setting in php.ini or use ini_set() in C:\xampplite\htdocs\testing.php on line 36.
      can u help me…

    • auie
    • March 16th, 2010

    my php info
    ===========================================================
    sendmail_from no value no value
    sendmail_path no value no value

    • auie
    • March 16th, 2010

    Yey i was successful in sending email!
    whooooooooooooooooooooooooooooha!

      • Pallavi
      • March 16th, 2010

      wow thts good news…..congrats to you!!

        • april
        • February 15th, 2011

        how did you change your ISP to SMPT? could you paste your codes? Badly.. need it for our project…

    • auie
    • March 17th, 2010

    i didn’t change my php.ini or sendmail.ini i just use ini_set function and set my ISP as my SMTP

      • tom
      • December 19th, 2010

      Could you detail me by email the ini_set()function you used? Would much appreciate that.

      regards,
      tom

      • april
      • February 11th, 2011

      how did you change your ISP to SMPT? could you paste your codes? Badly.. need it for our project…

    • erik
    • June 29th, 2010

    I followed exactly like what you have posted but I can’t send out any mail to my hotmail account from google account… however no errors found and only “Mail sent successfully!” @_@

    • Please check if you have any error messages in your sendmail.log file or the error.log file (in apache/logs folder) and ensure that you have restarted your apache server after any changes to the php.ini file. Also could you paste the [mail function] settings from your php.ini file?

    • Federico
    • July 2nd, 2010

    Hi,
    i modified in order:

    1) in php.ini i added this line, removing thi initial comment made by a ‘;':

    ——————————————————–
    sendmail_path = “\”C:\xampp\sendmail\sendmail.exe\” -t”
    ——————————————————–

    2) After i opened the file sendmail.ini and i have commented all lines that there are as default, those reported to Mercury and Hotmail e i added those for gmail, and the end result is this:

    ——————————————————–
    # Example for a user configuration file

    # Set default values for all following accounts.
    defaults
    logfile “C:\xampp\sendmail\sendmail.log”

    # Mercury
    #account Mercury
    #host localhost
    #from postmaster@localhost
    #auth off

    # A freemail service example
    #account Hotmail
    #tls on
    #tls_certcheck off
    #host smtp.live.com
    #from [exampleuser]@hotmail.com
    #auth on
    #user [exampleuser]@hotmail.com
    #password [examplepassword]

    account Gmail
    tls on
    tls_certcheck off
    host smtp.gmail.com
    from bonomifederico89@gmail.com
    auth on
    user bonomifederico89@gmail.com
    password ***************

    # Set a default account
    account default : Gmail
    ——————————————————–

    I no more errors from php sending as troava of the configuration correct, the only file that is sendmail.log I discovered that he can not connect to smtp server google.

    LOG——————————————-
    Jul 02 09:03:19 host=smtp.gmail.com tls=on auth=on user=bonomifederico89@gmail.com from=bonomifederico89@gmail.com recipients=bonomifederico@hotmail.it errormsg=’cannot connect to smtp.gmail.com, port 25: Unknown error’ exitcode=EX_TEMPFAIL
    ———————————————-

    See something wrong in what I do?
    Thanks

    • Please make sure that you have restarted your apache server after making the required changes in the php.ini file. No need of the extra double quotes in the sendmail_path setting.
      sendmail_path = “C:\xampp\sendmail\sendmail.exe\ -t”
      Also could you paste your [mail function] settings from the php.ini file?

        • Ramya
        • July 9th, 2010

        hi i hav tried all the steps like wat u said above..
        im gettin as mail sent successfully in my browser screen..but then im not gettin the mail in the inbox..Can you pls help me wit this?

        • Ramya
        • July 9th, 2010

        Thanxxxx a lot pallavi..im now able to send emails from my php script..

        • mahe
        • September 13th, 2010

        hello pallavi.
        i have what you said above(php.ini,sendmail.ini and script).script runs successfully but not delivered.
        and what do you mean by”Also could you paste your [mail function] settings from the php.ini file?”.i am not getting it

  1. Ramya :
    Thanxxxx a lot pallavi..im now able to send emails from my php script..

    I also the same problem can you help me how did you resolve the problem

    • Rithin
    • August 3rd, 2010

    i hav tried all the steps like wat u said above..
    im gettin as mail sent successfully in my browser screen..but then im not gettin the mail in the inbox..Can you pls help me wit this?

    ma php ini settings are follows..

    [mail function]
    ; For Win32 only.
    SMTP =smtp.gmail.com
    smtp_port = 25

    ; For Win32 only.
    sendmail_from = chat2rithin@gmail.com

    ; For Unix only. You may supply arguments as well (default: “sendmail -t -i”).
    sendmail_path = “C:\xampplite\sendmail\sendmail.exe\-t”

    and sendmail ini is

    # Set a default account
    account default : Gmail
    tls on
    tls_certcheck off
    host smtp.gmail.com
    from chat2rithin@gmail.com
    auth on
    user chat2rithin@gmail.com
    password ************

    • Rithin
    • August 4th, 2010

    hurrayyyyyyyyyyyyy..i got it…thanks pallavi… its wrknggggggggggggggg for me.. one more thing.. but i cant send html thngs why?

  2. i got a something problem i didn’t know when sending email from localhost with php

    finally, i found your tutorial and this tutorial works for me… :)
    thanks Pallavi

    if you don’t mind, may I share your tutorial in my blog, but in indonesian.. :D

    • m
    • August 24th, 2010

    hola a toos

    • m
    • August 24th, 2010

    hola a todos

    • m
    • August 24th, 2010

    hola que tal a toos

    • m
    • August 24th, 2010

    hola que tal a todos

    • Rhea
    • October 2nd, 2010

    Thanks a lot. Browsed through a lot of sites. some even said it was not possible. But your method worked .

    • Johan Pienaar
    • October 19th, 2010

    Thanks for this!!!! Works great!!

    • nOAH
    • December 4th, 2010

    Hy please help me . I get this in the error.log

    sendmail.exe: cannot connect to smtp.gmail.com, port 25: Connection timed out

    sendmail.exe: could not send mail (account default from C:\xampplite\sendmail\sendmail.ini)

    • tom
    • December 19th, 2010

    Hi Pallavi,

    Thanks for the excellent post.
    I too was having difficulties with this problem and did everything you described in the post. I get a reply from the PHP script saying “Message sent successfully” but I don’t actually see the mail in my inbox. Could you suggest a reason?
    Here are my configuration details:
    # Example for a user configuration file

    # Set default values for all following accounts.
    #defaults
    logfile “C:\xampplite\sendmail\sendmail.log”

    # Mercury
    #account Mercury
    #host localhost
    #from postmaster@localhost
    #auth off

    # A freemail service example
    #account Hotmail
    #tls on
    #tls_certcheck off
    #host smtp.live.com
    #from [exampleuser]@hotmail.com
    #auth on
    #user [exampleuser]@hotmail.com
    #password [examplepassword]

    # Set a default account
    account default : Gmail
    account Gmail
    tis on
    tis_certcheck off
    host smtp.gmail.com
    from tom.dr.mathew@gmail.com
    auth on
    user tom.dr.mathew@gmail.com
    password ********

    • Puja
    • January 4th, 2011

    Hi Pallavi,

    After 2 weeks on my hard work, got your post.Feel good to see your post.

    Can you please help me too. I follow your steps and getting “Message successfully sent” but no email in my gmail account.

    Please help me too.

    • Puja
    • January 4th, 2011

    My Info: –

    Windows Vista
    XAMPP for windows
    Netbeans with PHP

    php.ini : –

    [mail function]
    ; For Win32 only.
    ; http://php.net/smtp
    SMTP = localhost
    ; http://php.net/smtp-port
    smtp_port = 25

    ; For Win32 only.
    ; http://php.net/sendmail-from
    ;sendmail_from = postmaster@localhost

    ; For Unix only. You may supply arguments as well (default: “sendmail -t -i”).
    ; http://php.net/sendmail-path
    sendmail_path = “C:\xampp\sendmail\sendmail.exe\ -t”

    sendmail.ini : –

    # Example for a user configuration file

    # Set default values for all following accounts.
    defaults
    logfile “C:\xampp\sendmail\sendmail.log”

    # Mercury
    #account Mercury
    #host localhost
    #from postmaster@localhost
    #auth off

    # A freemail service example
    #account Hotmail
    #tls on
    #tls_certcheck off
    #host smtp.live.com
    #from [exampleuser]@hotmail.com
    #auth on
    #user [exampleuser]@hotmail.com
    #password [examplepassword]

    account Gmail
    tls on
    tls_certcheck off
    host smtp.gmail.com
    from abc.abc@gmail.com
    auth on
    user abc.abc@gmail.com
    password *********

    # Set a default account
    account default : Gmail

    What’s the next step to do?

    • Hi Puja. Next step is to restart your web server and write a sample program to check if the mail is being sent to you.If the mail is not sent then you will have to check the log files. Try changing the smtp port to 587.

    • vinay H S
    • January 14th, 2011

    Thanks a lot.I tried sending mails for 2 days but i didnt get .After following your steps i have successfully sent mails

    • Hey, how to u get to sendemail using php? mind to guide me? i have follow all the step. i can get the “message sent” but cant receive it in my mail box

    • diego
    • January 15th, 2011

    I have a hard time solving this, my php.ini file looks like this

    [mail function]
    sendmail_path = “C:\xampp\sendmail\sendmail.exe -t”

    and my sendmail.ini looks like

    # Example for a user configuration file
    defaults
    logfile “C:\xampp\sendmail\sendmail.log”
    account Gmail
    tls on
    tls_certcheck off
    host smtp.gmail.com
    from diegofon@gmail.com
    auth on
    user diegofon@gmail.com
    password ************

    account default : Gmail

    What am I doing wrong??

    • Hi Diego…I don’t see anything wrong in your settings. Hope you restarted the web server before sending test mail.Check in the log/error files for messages.

        • diego fonseca
        • February 11th, 2011

        I set my php ini file well, but had to change my folder permission to 777 and also restarted xampp

    • webecho
    • February 5th, 2011

    Thank you.
    I’ve been trying to find a solution to this for ages.

    I’ve had to keep uploading changes to a ‘live’ server to test forms.

    Thanks for sharing

    @webecho

    • Noa Kushnir
    • February 6th, 2011

    Hello,

    I have tried doing what you said and changed all the relevant parts of sendmail.ini and php.ini

    in Sendmail.ini

    # Mercury
    #account Mercury
    #host localhost
    #from postmaster@localhost
    #auth off

    # A freemail service example
    account Gmail
    tls on
    tls_certcheck off
    host smtp.gmail.com
    from avlabtechnion@gmail.com
    auth on
    user avlabtechnion@gmail.com
    password *********

    # Set a default account
    account default : Gmai

    and in php.ini: I changed the mail function section as follows:

    [mail function]
    ; For Win32 only.
    ; http://php.net/smtp
    ;SMTP = http://gmail.google.com
    ; http://php.net/smtp-port
    ;smtp_port = 25
    SMTP = smtp.gmail.com
    smtp_port = 465

    ; For Win32 only.
    ; http://php.net/sendmail-from
    sendmail_from = avlabtechnion@gmail.com

    ; For Unix only. You may supply arguments as well (default: “sendmail -t -i”).
    ; http://php.net/sendmail-path
    sendmail_path = “\”C:/Documents and Settings/avlab/My Documents/Noa/AVL-Website/XAMPPLite/xampplite/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
    ; the 5th parameter to mail(), even in safe mode.
    ;mail.force_extra_parameters =

    ; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
    mail.add_x_header = Off

    ; Log all mail() calls including the full path of the script, line #, to address and headers
    mail.log = “C:\Documents and Settings\avlab\My Documents\Noa\AVL-Website\XAMPPLite\xampplite\apache\logs\php_mail.log”

    • Noa Kushnir
    • February 6th, 2011

    Hello,

    I have tried doing what you said and changed all the relevant parts of sendmail.ini and php.ini

    in Sendmail.ini

    # Mercury
    #account Mercury
    #host localhost
    #from postmaster@localhost
    #auth off

    # A freemail service example
    account Gmail
    tls on
    tls_certcheck off
    host smtp.gmail.com
    from avlabtechnion@gmail.com
    auth on
    user avlabtechnion@gmail.com
    password *********

    # Set a default account
    account default : Gmai

    and in php.ini: I changed the mail function section as follows:

    [mail function]
    ; For Win32 only.
    ; http://php.net/smtp
    ;SMTP = http://gmail.google.com
    ; http://php.net/smtp-port
    ;smtp_port = 25
    SMTP = smtp.gmail.com
    smtp_port = 465

    ; For Win32 only.
    ; http://php.net/sendmail-from
    sendmail_from = avlabtechnion@gmail.com

    ; For Unix only. You may supply arguments as well (default: “sendmail -t -i”).
    ; http://php.net/sendmail-path
    sendmail_path = “\”C:/Documents and Settings/avlab/My Documents/Noa/AVL-Website/XAMPPLite/xampplite/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
    ; the 5th parameter to mail(), even in safe mode.
    ;mail.force_extra_parameters =

    ; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
    mail.add_x_header = Off

    ; Log all mail() calls including the full path of the script, line #, to address and headers
    mail.log = “C:\Documents and Settings\avlab\My Documents\Noa\AVL-Website\XAMPPLite\xampplite\apache\logs\php_mail.log”

    Oops, I forgot to state the problem. so, as I said, I updated php.ini and sendmail.ini as I posted above. still, when I try mailing using php’s mail() command I keep getting the error “could not send mail” – and nothing more than that.

    when I open sendmail.log I see the error:
    Feb 06 15:12:39 host=smtp.gmail.com tls=on auth=on user=avlabtechnion@gmail.com from=avlabtechnion@gmail.com recipients=nkushnir@gmail.com errormsg=’cannot connect to smtp.gmail.com, port 25: Unknown error’ exitcode=EX_TEMPFAIL

    I am going crazy because I specified port 465 in php.ini.
    What am I doing wrong?

  3. Hi Noa….You seem to be missing the last letter ‘l’ in the default account setting of Gmail in your sendmail.ini file. In the php.ini file the SMTP value is set to localhost and not smtp.gmail.com. Try to use port number 587 and make sure to restart your web server before you execute your test program.

    • Daniel
    • February 14th, 2011

    Hello,

    I have followed the instruction above and I get the message: ‘Mail sent successfully’ but no mail is sent. from the log file it seems that it does not connect to gmail.

    ****my php.ini file looks like this:

    [mail function]
    ; For Win32 only.
    ; http://php.net/smtp
    SMTP = smtp.gmail.com
    ; http://php.net/smtp-port
    smtp_port = 587

    ; For Win32 only.
    ; http://php.net/sendmail-from
    sendmail_from = danielcucos@gmail.com

    ; For Unix only. You may supply arguments as well (default: “sendmail -t -i”).
    ; http://php.net/sendmail-path
    sendmail_path = “C:\xampp\sendmail\sendmail.exe -t”

    ****sendmail.ini looks like this:

    # Example for a user configuration file

    # Set default values for all following accounts.
    defaults
    logfile “C:\xampp\sendmail\sendmail.log”

    # Mercury
    #account Mercury
    #host localhost
    #from postmaster@localhost
    #auth off

    # A freemail service example
    #account Hotmail
    #tls on
    #tls_certcheck off
    #host smtp.live.com
    #from [exampleuser]@hotmail.com
    #auth on
    #user [exampleuser]@hotmail.com
    #password [examplepassword]

    account Gmail
    tls on
    tls_certcheck off
    host smtp.gmail.com
    from ********@gmail.com
    auth on
    user ********@gmail.com
    password ********

    # Set a default account
    account default : Gmail

    ****the test.php file looks like this:

    **** sendmail.log file is:

    Feb 14 23:08:30 host=smtp.gmail.com tls=on auth=on user=*****@gmail.com from=******@gmail.com recipients=*******@yahoo.com errormsg=’cannot connect to smtp.gmail.com, port 25: Connection refused’ exitcode=EX_TEMPFAIL

    I am restartin the localhost everytime I make a change.

    I cannot see what I am doing wrong…please help!

    • Hi Daniel….in the php.ini file set the SMTP to localhost restart the APACHE server and try sending the mail. If this also doesn’t work out then change the smtp_port number to 25, restart the APACHE server and try sending the mail.

        • Daniel
        • February 15th, 2011

        Hi Pallavi,

        Thank you for your reply. I have found what the problem was and solved.
        I am on my University’s network and the ports were blocked and that is why I could not connect. The tutorial is great and it works.

        Thank you for all your help. big thumbs up :)

    • Arvin Yorro
    • March 12th, 2011

    Hi, I noticed For “Win32 only.”

    Will this work for Win64?

    Thank you.

    Also, how long does it take for the mail to arrive?.

      • Daniel
      • March 19th, 2011

      not sure as I have not tested it. the email should arrive straight away. there should be no wait at all.

    • Dan_Lizada
    • March 14th, 2011

    Hello there Pallavi,

    I floowed your post, but I still can’t send messages in gmail.
    Could you help me please..

    Is there something wrong with my settings?

    [sendmail]
    account Gmail
    tls on
    tls_certcheck off
    host smtp.gmail.com
    from judge.kyo15@gmail.com
    auth on
    user ***********@gmail.com
    password *********
    port 465
    account default : Gmail

    SMTP = smtp.gmail.com
    ; http://php.net/smtp-port
    smtp_port = 465

    ; For Win32 only.
    ; http://php.net/sendmail-from
    ;sendmail_from = judge.kyo15@gmail.com

    ;sendmail_path = “C:\xampp\sendmail\sendmail.exe\ -t”

    note: I used port: 465 because someone told me that this is googles port and i’m unaware of that…

    Thanks Pallavi and more POWER!!

    • Hi Dan….sorry for the late reply…hope your problem has been solved…if not you can try using port number 587..In my case it worked without changing the port number.

        • shikha
        • May 12th, 2011

        Hi pallavi,
        I am facing same prblm….i try port no 587 as well as 25..even restart my sever..no success..no error message in log file. What should i do? Please reply

      • Hi Shikha its difficult to debug a program without error messages. Please ensure that error_log in php.ini is not commented. Also check for apache server errors in apache log files folder.

    • zero
    • March 19th, 2011

    I tried to edit the php.ini and made the changes…and emails successfully sent but did not receive the emails. any ideas? all I did is to edit the php.ini, I didnt touch the mercury mail. Please help on this, I have been looking for this eversince. Any ideas will do…Thank you…

      • Daniel
      • March 19th, 2011

      how does your sendmail.ini look like? you may need to configure your mail account in there.

    • Ronald
    • April 9th, 2011

    hi, you have given the email configurations for Xampplite 1.7.3, but xampplite 1.7.1 does not have such lines in the sendmail.ini file, could you tell me how to add that ??

    Thanks
    Ronald @ Ronea

  4. Hi

    • Sunit
    • April 22nd, 2011

    THANX

    SO SMART

    PALLAVVVVVVVVVVV

    • Gavin333
    • May 24th, 2011

    Hello there Pallavi,

    I floowed your post(restart apache after any changing,changed port to 587 and 25), I can send messages successfully but can’t receive the email. Could you help me please..
    Following is the error.log …

    [Tue May 24 21:27:02 2011] [notice] Parent: Received shutdown signal — Shutting down the server.
    [Tue May 24 21:27:02 2011] [notice] Child 1112: Exit event signaled. Child process is ending.
    [Tue May 24 21:27:03 2011] [notice] Child 1112: Released the start mutex
    [Tue May 24 21:27:04 2011] [notice] Child 1112: All worker threads have exited.
    [Tue May 24 21:27:04 2011] [notice] Child 1112: Child process is exiting
    [Tue May 24 21:27:04 2011] [notice] Parent: Child process exited successfully.
    [Tue May 24 21:27:09 2011] [notice] Digest: generating secret for digest authentication …
    [Tue May 24 21:27:09 2011] [notice] Digest: done
    [Tue May 24 21:27:10 2011] [notice] Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1 configured — resuming normal operations
    [Tue May 24 21:27:10 2011] [notice] Server built: Nov 11 2009 14:29:03
    [Tue May 24 21:27:10 2011] [notice] Parent: Created child process 1348
    [Tue May 24 21:27:13 2011] [notice] Digest: generating secret for digest authentication …
    [Tue May 24 21:27:13 2011] [notice] Digest: done
    [Tue May 24 21:27:13 2011] [notice] Child 1348: Child process is running
    [Tue May 24 21:27:13 2011] [notice] Child 1348: Acquired the start mutex.
    [Tue May 24 21:27:13 2011] [notice] Child 1348: Starting 150 worker threads.
    [Tue May 24 21:27:13 2011] [notice] Child 1348: Starting thread to listen on port 443.
    [Tue May 24 21:27:13 2011] [notice] Child 1348: Starting thread to listen on port 80.
    [Tue May 24 21:27:13 2011] [notice] Child 1348: Starting thread to listen on port 443.
    [Tue May 24 21:27:13 2011] [notice] Child 1348: Starting thread to listen on port 80.
    sendmail.exe: cannot connect to smtp.gmail.com, port 25: Connection timed out
    sendmail.exe: could not send mail (account default from C:\xampp\sendmail\sendmail.ini)

    php.ini [mail function]

    ; For Win32 only.
    ; http://php.net/smtp
    SMTP = localhost
    ; http://php.net/smtp-port
    smtp_port = 25

    ; For Win32 only.
    ; http://php.net/sendmail-from
    sendmail_from = tsuzuki.cs@gmail.com

    sendmail.ini
    # Example for a user configuration file

    # Set default values for all following accounts.
    defaults
    logfile “C:\xampp\sendmail\sendmail.log”

    #Mercury
    #account Mercury
    #host localhost
    #from postmaster@localhost
    #auth off

    # A freemail service example
    #account hotmail
    #tls on
    #tls_certcheck off
    #host smtp.live.com
    #from [your_username]@hotmail.com
    #auth on
    #user [you_username]@hotmail.com
    #password [your_password]

    account Gmail
    tls on
    tls_certcheck off
    host smtp.gmail.com
    from gavin333@gmail.com
    auth on
    user gavin333@gmail.com
    password **********

    # Set a default account
    account default : Gmail

      • Gavin333
      • May 24th, 2011

      the correct php.ini
      php.ini [mail function]

      ; For Win32 only.
      ; http://php.net/smtp
      SMTP = localhost
      ; http://php.net/smtp-port
      smtp_port = 25

      ; For Win32 only.
      ; http://php.net/sendmail-from
      sendmail_from = gavin333@gmail.com

      ; For Unix only. You may supply arguments as well (default: “sendmail -t -i”).
      ; http://php.net/sendmail-path
      sendmail_path = “C:\xampp\sendmail\sendmail.exe -t”

      • Hi Gavin…the error log says “sendmail.exe: cannot connect to smtp.gmail.com, port 25: Connection timed out” which means that sendmail is not able to connect to the smtp server.This could be due to firewall/antivirus restrictions or issue with ssl connections. For ssl issue please check if you have libeay32.dll and ssleay32.dll files in the sendmail folder.

    • sk
    • June 11th, 2011

    I am literally confused with the format u gave in the beginning and then agreeing to the ones given by people above.
    No. of ways to deal with SMTP =
    ( either localhost or smtp.gmail.com…..so total 2)
    No. of ways to deal with smtp_server =
    (25, 465, 587…total 3)
    So we get 2×3=6 ways +1 for putting semicolon before both of them..hence total 7.
    No. of ways to fill sendmail_from =
    (2 i.e. putting semicolon or not)
    So total ways to modify php.ini file=7×2=14…Considering sendmail_path = “C:\xampp\sendmail\sendmail.exe -t” is the correct way.

    Then in the sendmail.ini file either do we have to mention port or not..if yes then again thr r 3 ways(25,465,587)….so total 4 ways to modify sendmail.ini file.

    Hence altogether it becomes 14×4=56 ways to complete the overall task…..looks like a joke but that was what i cud infer from the above discussion..that pple came with some or the other way among those 56….i don’t how many i have tried but didn’t get positive result in any of them…when i use 465 or 587 error gives unknwn port….etc….and with 25 it gives…server sent empty reply…
    CAN smbdy give an explicit soln to the above taking care of all the areas i mentioned…thnx fr reading..

  5. Hi Pallavi,

    I followed exactly what u written above, i got email sent but i cant receive the email. These are my coding

    SendMail.ini

    # Example for a user configuration file

    # Set default values for all following accounts.
    defaults
    logfile “C:\xampp\sendmail\sendmail.log”

    # Mercury
    #account Mercury
    #host localhost
    #from postmaster@localhost
    #auth off

    # A freemail service example
    #account Hotmail
    #tls on
    #tls_certcheck off
    #host smtp.live.com
    #from [exampleuser]@hotmail.com
    #auth on
    #user [exampleuser]@hotmail.com
    #password [examplepassword]

    account Gmail
    tls on
    tls_certcheck off
    host smtp.gmail.com
    from my@gmail.com
    auth on
    user my@gmail.com
    password *******

    # Set a default account
    account default : Gmail

    php.ini

    [mail function]
    ; For Win32 only.
    ; http://php.net/smtp
    SMTP = localhost
    ; http://php.net/smtp-port
    smtp_port = 25

    ; For Win32 only.
    ; http://php.net/sendmail-from
    sendmail_from = my@gmail.com

    ; For Unix only. You may supply arguments as well (default: “sendmail -t -i”).
    ; http://php.net/sendmail-path
    sendmail_path = “C:\xampp\sendmail\sendmail.exe\-t”

  6. Ramya :
    Thanxxxx a lot pallavi..im now able to send emails from my php script..

    can u guide me how?

  7. Rithin :
    hurrayyyyyyyyyyyyy..i got it…thanks pallavi… its wrknggggggggggggggg for me.. one more thing.. but i cant send html thngs why?

    Hey, how to u get to sendemail using php? mind to guide me? i have follow all the step. i can get the “message sent” but cant receive it in my mail box

    • hasnat
    • August 9th, 2011

    my sendmail.ini is different.need help plzz

    ; configuration for fake sendmail

    ; if this file doesn’t exist, sendmail.exe will look for the settings in
    ; the registry, under HKLM\Software\Sendmail

    [sendmail]

    ; you must change mail.mydomain.com to your smtp server,
    ; or to IIS’s “pickup” directory. (generally C:\Inetpub\mailroot\Pickup)
    ; emails delivered via IIS’s pickup directory cause sendmail to
    ; run quicker, but you won’t get error messages back to the calling
    ; application.

    smtp_server=smtp.gmail.com

    ; smtp port (normally 25)

    smtp_port=587

    ; the default domain for this server will be read from the registry
    ; this will be appended to email addresses when one isn’t provided
    ; if you want to override the value in the registry, uncomment and modify

    ;default_domain=local

    ; 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=luvbeggrz@gmail.com
    auth_password=

    ; if your smtp server uses pop3 before smtp authentication, modify the
    ; following three lines

    ;pop3_server=
    ;pop3_username=
    ;pop3_password=

    ; to force the sender to always be the following email address, uncomment and
    ; populate with a valid email address. this will only affect the “MAIL FROM”
    ; command, it won’t modify the “From: ” header of the message content

    ;force_sender=me@localhost

    ; 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=localhost

  8. message sent but i couldnt see the email in the email i sent it to

  9. I’d like to add something here that may help those who are seeing errors about being unable to connect on port 25 and using smtp.gmail.com

    In the php.ini, set:
    smtp_port = 587

    Got that. Good.

    Now, sendmail.ini has a little known and little used “port” parameter. I used this and put it right under the “host” parameter. It looks like this:
    host smtp.gmail.com
    port 587

    Make the change, save sendmail.ini, restart the web server and test. At this point, I was successfully receiving email on Gmail through XAMPP!

    Good luck!

    • Anuj
    • November 14th, 2011

    I m getting error
    errormsg=’cannot locate host smtp.gmail.com: No such host is known. ‘ exitcode=EX_NOHOST

    • try pinging smtp.gmail.com and if it fails then you may have to change your port number

    • David
    • November 22nd, 2011

    i’ m also get mail sent successfully in my browser , but i also not get the mail in the inbox. Can help me solve this problem?

    In php.ini:

    [mail function]
    ; For Win32 only.
    ; http://php.net/smtp
    SMTP = localhost
    ; http://php.net/smtp-port
    smtp_port = 587

    ; For Win32 only.
    ; http://php.net/sendmail-from
    sendmail_from = fashiondeisgn@gmail.com

    ; For Unix only. You may supply arguments as well (default: “sendmail -t -i”).
    ; http://php.net/sendmail-path
    sendmail_path = “C:\xampp\sendmail\sendmail.exe\-t”

    in sendmail.ini:

    # Example for a user configuration file

    # Set default values for all following accounts.
    defaults
    logfile “C:\xampp\sendmail\sendmail.log”

    # Mercury
    account Mercury
    host localhost
    from postmaster@localhost
    auth off

    # A freemail service example
    account Hotmail
    tls on
    tls_certcheck off
    host smtp.live.com
    from [exampleuser]@hotmail.com
    auth on
    user [exampleuser]@hotmail.com
    password [examplepassword]

    account Gmail
    tls on
    tls_certcheck off
    host smtp.gmail.com
    from fashiondeisgn@gmail.com
    auth on
    user fashiondeisgn@gmail.com
    password **********

    # Set a default account
    account default : Gmail

    • David
    • November 23rd, 2011

    i’m also get mail sent successfully in my browser, but not get the mail in the inbox. Can help me solve this problem?

    in php.ini:

    [mail function]
    ; For Win32 only.
    ; http://php.net/smtp
    SMTP = localhost
    ; http://php.net/smtp-port
    smtp_port = 587

    ; For Win32 only.
    ; http://php.net/sendmail-from
    ;sendmail_from = fashiondeisgn@gmail.com

    ; For Unix only. You may supply arguments as well (default: “sendmail -t -i”).
    ; http://php.net/sendmail-path
    sendmail_path = “C:\xampp\sendmail\sendmail.exe -t”

    in sendmail.ini:

    # Example for a user configuration file

    # Set default values for all following accounts.
    defaults
    logfile “C:\xampp\sendmail\sendmail.log”

    # Mercury
    account Mercury
    host localhost
    from postmaster@localhost
    auth off

    # A freemail service example
    account Hotmail
    tls on
    tls_certcheck off
    host smtp.live.com
    from [exampleuser]@hotmail.com
    auth on
    user [exampleuser]@hotmail.com
    password [examplepassword]

    account Gmail
    tls on
    tls_certcheck off
    host smtp.gmail.com
    from fashiondeisgn@gmail.com
    auth on
    user fashiondeisgn@gmail.com
    password ***************

    # Set a default account
    account default : Gmail

    for sendmail.log:

    Nov 23 14:12:48 host=smtp.gmail.com tls=on auth=on user=fashiondeisgn@gmail.com from=fashiondeisgn@gmail.com recipients=fashiondeisgn@gmail.com errormsg=’network read error: Connection reset by peer’ exitcode=EX_IOERR

  10. As per the log there doesn’t seem to be any error in the script….there seems to be a network issue causing this error….

      • David
      • November 28th, 2011

      sorry, i am very late reply to you.I I also already change the network, the php.ini and sendmial.ini are same thing above, but also got error.

      in sendmail.log :

      Nov 29 12:33:34 host=smtp.gmail.com tls=on auth=on user=fashiondeisgn@gmail.com from=fashiondeisgn@gmail.com recipients=fashiondeisgn@gmail.com errormsg=’cannot connect to smtp.gmail.com, port 25: Connection timed out’ exitcode=EX_TEMPFAIL

      • the error shows that it is not able to connect to smtp.gmail.com on port 25 so try changing the port number to 25 and try again….

    • Lemi
    • December 6th, 2011

    message sent but not received in inbox. can you help me, please?

    i did use my real account and password where needed.

    [sendmail]

    ; you must change mail.mydomain.com to your smtp server,
    ; or to IIS’s “pickup” directory. (generally C:\Inetpub\mailroot\Pickup)
    ; emails delivered via IIS’s pickup directory cause sendmail to
    ; run quicker, but you won’t get error messages back to the calling
    ; application.

    smtp_server=smtp.gmail.com

    ; smtp port (normally 25)

    smtp_port=587

    ; the default domain for this server will be read from the registry
    ; this will be appended to email addresses when one isn’t provided
    ; if you want to override the value in the registry, uncomment and modify

    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=*********
    auth_password=**********

    ; if your smtp server uses pop3 before smtp authentication, modify the
    ; following three lines

    ;pop3_server=
    :pop3_username=
    ;pop3_password=

    ; to force the sender to always be the following email address, uncomment and
    ; populate with a valid email address. this will only affect the “MAIL FROM”
    ; command, it won’t modify the “From: ” header of the message content

    ;force_sender=me@localhost

    ; 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=localhost

    From php.ini:

    [mail function]
    ; For Win32 only.
    ; http://php.net/smtp
    SMTP = smtp.gmail.com
    ; http://php.net/smtp-port
    smtp_port = 587

    ; For Win32 only.
    ; http://php.net/sendmail-from
    sendmail_from = *****************

    ; For Unix only. You may supply arguments as well (default: “sendmail -t -i”).
    ; http://php.net/sendmail-path
    sendmail_path = “C:\xampp\sendmail\sendmail.exe\-t”

      • Lemi
      • December 6th, 2011

      also used port 465

      • what error are you getting in your error log file?

    • Energeiz
    • December 20th, 2011

    message success but not receive.
    no error.

    this my php.ini code
    [PHP]

    ;;;;;;;;;;;;;;;;;;;
    ; About php.ini ;
    ;;;;;;;;;;;;;;;;;;;
    ; PHP’s initialization file, generally called php.ini, is responsible for
    ; configuring many of the aspects of PHP’s behavior.

    ; PHP attempts to find and load this configuration from a number of locations.
    ; The following is a summary of its search order:
    ; 1. SAPI module specific location.
    ; 2. The PHPRC environment variable. (As of PHP 5.2.0)
    ; 3. A number of predefined registry keys on Windows (As of PHP 5.2.0)
    ; 4. Current working directory (except CLI)
    ; 5. The web server’s directory (for SAPI modules), or directory of PHP
    ; (otherwise in Windows)
    ; 6. The directory from the –with-config-file-path compile time option, or the
    ; Windows directory (C:\windows or C:\winnt)
    ; See the PHP docs for more specific information.
    ; http://php.net/configuration.file

    ; The syntax of the file is extremely simple. Whitespace and Lines
    ; beginning with a semicolon are silently ignored (as you probably guessed).
    ; Section headers (e.g. [Foo]) are also silently ignored, even though
    ; they might mean something in the future.

    ; Directives following the section heading [PATH=/www/mysite] only
    ; apply to PHP files in the /www/mysite directory. Directives
    ; following the section heading [HOST=www.example.com] only apply to
    ; PHP files served from http://www.example.com. Directives set in these
    ; special sections cannot be overridden by user-defined INI files or
    ; at runtime. Currently, [PATH=] and [HOST=] sections only work under
    ; CGI/FastCGI.
    ; http://php.net/ini.sections

    ; Directives are specified using the following syntax:
    ; directive = value
    ; Directive names are *case sensitive* – foo=bar is different from FOO=bar.
    ; Directives are variables used to configure PHP or PHP extensions.
    ; There is no name validation. If PHP can’t find an expected
    ; directive because it is not set or is mistyped, a default value will be used.

    ; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one
    ; of the INI constants (On, Off, True, False, Yes, No and None) or an expression
    ; (e.g. E_ALL & ~E_NOTICE), a quoted string (“bar”), or a reference to a
    ; previously set variable or directive (e.g. ${foo})

    ; Expressions in the INI file are limited to bitwise operators and parentheses:
    ; | bitwise OR
    ; ^ bitwise XOR
    ; & bitwise AND
    ; ~ bitwise NOT
    ; ! boolean NOT

    ; Boolean flags can be turned on using the values 1, On, True or Yes.
    ; They can be turned off using the values 0, Off, False or No.

    ; An empty string can be denoted by simply not writing anything after the equal
    ; sign, or by using the None keyword:

    ; foo = ; sets foo to an empty string
    ; foo = None ; sets foo to an empty string
    ; foo = “None” ; sets foo to the string ‘None’

    ; If you use constants in your value, and these constants belong to a
    ; dynamically loaded extension (either a PHP extension or a Zend extension),
    ; you may only use these constants *after* the line that loads the extension.

    ;;;;;;;;;;;;;;;;;;;
    ; About this file ;
    ;;;;;;;;;;;;;;;;;;;
    ; PHP comes packaged with two INI files. One that is recommended to be used
    ; in production environments and one that is recommended to be used in
    ; development environments.

    ; php.ini-production contains settings which hold security, performance and
    ; best practices at its core. But please be aware, these settings may break
    ; compatibility with older or less security conscience applications. We
    ; recommending using the production ini in production and testing environments.

    ; php.ini-development is very similar to its production variant, except it’s
    ; much more verbose when it comes to errors. We recommending using the
    ; development version only in development environments as errors shown to
    ; application users can inadvertently leak otherwise secure information.

    ;;;;;;;;;;;;;;;;;;;
    ; Quick Reference ;
    ;;;;;;;;;;;;;;;;;;;
    ; The following are all the settings which are different in either the production
    ; or development versions of the INIs with respect to PHP’s default behavior.
    ; Please see the actual settings later in the document for more details as to why
    ; we recommend these changes in PHP’s behavior.

    ; allow_call_time_pass_reference
    ; Default Value: On
    ; Development Value: Off
    ; Production Value: Off

    ; display_errors
    ; Default Value: On
    ; Development Value: On
    ; Production Value: Off

    ; display_startup_errors
    ; Default Value: Off
    ; Development Value: On
    ; Production Value: Off

    ; error_reporting
    ; Default Value: E_ALL & ~E_NOTICE
    ; Development Value: E_ALL | E_STRICT
    ; Production Value: E_ALL & ~E_DEPRECATED

    ; html_errors
    ; Default Value: On
    ; Development Value: On
    ; Production value: Off

    ; log_errors
    ; Default Value: Off
    ; Development Value: On
    ; Production Value: On

    ; magic_quotes_gpc
    ; Default Value: On
    ; Development Value: Off
    ; Production Value: Off

    ; max_input_time
    ; Default Value: -1 (Unlimited)
    ; Development Value: 60 (60 seconds)
    ; Production Value: 60 (60 seconds)

    ; output_buffering
    ; Default Value: Off
    ; Development Value: 4096
    ; Production Value: 4096

    ; register_argc_argv
    ; Default Value: On
    ; Development Value: Off
    ; Production Value: Off

    ; register_long_arrays
    ; Default Value: On
    ; Development Value: Off
    ; Production Value: Off

    ; request_order
    ; Default Value: None
    ; Development Value: “GP”
    ; Production Value: “GP”

    ; session.bug_compat_42
    ; Default Value: On
    ; Development Value: On
    ; Production Value: Off

    ; session.bug_compat_warn
    ; Default Value: On
    ; Development Value: On
    ; Production Value: Off

    ; session.gc_divisor
    ; Default Value: 100
    ; Development Value: 1000
    ; Production Value: 1000

    ; session.hash_bits_per_character
    ; Default Value: 4
    ; Development Value: 5
    ; Production Value: 5

    ; short_open_tag
    ; Default Value: On
    ; Development Value: Off
    ; Production Value: Off

    ; track_errors
    ; Default Value: Off
    ; Development Value: On
    ; Production Value: Off

    ; url_rewriter.tags
    ; Default Value: “a=href,area=href,frame=src,form=,fieldset=”
    ; Development Value: “a=href,area=href,frame=src,input=src,form=fakeentry”
    ; Production Value: “a=href,area=href,frame=src,input=src,form=fakeentry”

    ; variables_order
    ; Default Value: “EGPCS”
    ; Development Value: “GPCS”
    ; Production Value: “GPCS”

    ;;;;;;;;;;;;;;;;;;;;
    ; php.ini Options ;
    ;;;;;;;;;;;;;;;;;;;;
    ; Name for user-defined php.ini (.htaccess) files. Default is “.user.ini”
    ;user_ini.filename = “.user.ini”

    ; To disable this feature set this option to empty value
    ;user_ini.filename =

    ; TTL for user-defined php.ini files (time-to-live) in seconds. Default is 300 seconds (5 minutes)
    ;user_ini.cache_ttl = 300

    ;;;;;;;;;;;;;;;;;;;;
    ; Language Options ;
    ;;;;;;;;;;;;;;;;;;;;

    ; Enable the PHP scripting language engine under Apache.
    ; http://php.net/engine
    engine = On

    ; This directive determines whether or not PHP will recognize code between
    ; tags as PHP source which should be processed as such. It’s been
    ; recommended for several years that you not use the short tag “short cut” and
    ; instead to use the full tag combination. With the wide spread use
    ; of XML and use of these tags by other languages, the server can become easily
    ; confused and end up parsing the wrong code in the wrong context. But because
    ; this short cut has been a feature for such a long time, it’s currently still
    ; supported for backwards compatibility, but we recommend you don’t use them.
    ; Default Value: On
    ; Development Value: Off
    ; Production Value: Off
    ; http://php.net/short-open-tag
    ;short_open_tag = Off
    ; XAMPP for Linux is currently old fashioned
    short_open_tag = On

    ; Allow ASP-style tags.
    ; http://php.net/asp-tags
    asp_tags = Off

    ; The number of significant digits displayed in floating point numbers.
    ; http://php.net/precision
    precision = 14

    ; Enforce year 2000 compliance (will cause problems with non-compliant browsers)
    ; http://php.net/y2k-compliance
    y2k_compliance = On

    ; Output buffering is a mechanism for controlling how much output data
    ; (excluding headers and cookies) PHP should keep internally before pushing that
    ; data to the client. If your application’s output exceeds this setting, PHP
    ; will send that data in chunks of roughly the size you specify.
    ; Turning on this setting and managing its maximum buffer size can yield some
    ; interesting side-effects depending on your application and web server.
    ; You may be able to send headers and cookies after you’ve already sent output
    ; through print or echo. You also may see performance benefits if your server is
    ; emitting less packets due to buffered output versus PHP streaming the output
    ; as it gets it. On production servers, 4096 bytes is a good setting for performance
    ; reasons.
    ; Note: Output buffering can also be controlled via Output Buffering Control
    ; functions.
    ; Possible Values:
    ; On = Enabled and buffer is unlimited. (Use with caution)
    ; Off = Disabled
    ; Integer = Enables the buffer and sets its maximum size in bytes.
    ; Note: This directive is hardcoded to Off for the CLI SAPI
    ; Default Value: Off
    ; Development Value: 4096
    ; Production Value: 4096
    ; http://php.net/output-buffering
    output_buffering = 4096

    ; You can redirect all of the output of your scripts to a function. For
    ; example, if you set output_handler to “mb_output_handler”, character
    ; encoding will be transparently converted to the specified encoding.
    ; Setting any output handler automatically turns on output buffering.
    ; Note: People who wrote portable scripts should not depend on this ini
    ; directive. Instead, explicitly set the output handler using ob_start().
    ; Using this ini directive may cause problems unless you know what script
    ; is doing.
    ; Note: You cannot use both “mb_output_handler” with “ob_iconv_handler”
    ; and you cannot use both “ob_gzhandler” and “zlib.output_compression”.
    ; Note: output_handler must be empty if this is set ‘On’ !!!!
    ; Instead you must use zlib.output_handler.
    ; http://php.net/output-handler
    ;output_handler =

    ; Transparent output compression using the zlib library
    ; Valid values for this option are ‘off’, ‘on’, or a specific buffer size
    ; to be used for compression (default is 4KB)
    ; Note: Resulting chunk size may vary due to nature of compression. PHP
    ; outputs chunks that are few hundreds bytes each as a result of
    ; compression. If you prefer a larger chunk size for better
    ; performance, enable output_buffering in addition.
    ; Note: You need to use zlib.output_handler instead of the standard
    ; output_handler, or otherwise the output will be corrupted.
    ; http://php.net/zlib.output-compression
    zlib.output_compression = Off

    ; http://php.net/zlib.output-compression-level
    ;zlib.output_compression_level = -1

    ; You cannot specify additional output handlers if zlib.output_compression
    ; is activated here. This setting does the same as output_handler but in
    ; a different order.
    ; http://php.net/zlib.output-handler
    ;zlib.output_handler =

    ; Implicit flush tells PHP to tell the output layer to flush itself
    ; automatically after every output block. This is equivalent to calling the
    ; PHP function flush() after each and every call to print() or echo() and each
    ; and every HTML block. Turning this option on has serious performance
    ; implications and is generally recommended for debugging purposes only.
    ; http://php.net/implicit-flush
    ; Note: This directive is hardcoded to On for the CLI SAPI
    implicit_flush = Off

    ; The unserialize callback function will be called (with the undefined class’
    ; name as parameter), if the unserializer finds an undefined class
    ; which should be instantiated. A warning appears if the specified function is
    ; not defined, or if the function doesn’t include/implement the missing class.
    ; So only set this entry, if you really want to implement such a
    ; callback-function.
    unserialize_callback_func =

    ; When floats & doubles are serialized store serialize_precision significant
    ; digits after the floating point. The default value ensures that when floats
    ; are decoded with unserialize, the data will remain the same.
    serialize_precision = 100

    ; This directive allows you to enable and disable warnings which PHP will issue
    ; if you pass a value by reference at function call time. Passing values by
    ; reference at function call time is a deprecated feature which will be removed
    ; from PHP at some point in the near future. The acceptable method for passing a
    ; value by reference to a function is by declaring the reference in the functions
    ; definition, not at call time. This directive does not disable this feature, it
    ; only determines whether PHP will warn you about it or not. These warnings
    ; should enabled in development environments only.
    ; Default Value: On (Suppress warnings)
    ; Development Value: Off (Issue warnings)
    ; Production Value: Off (Issue warnings)
    ; http://php.net/allow-call-time-pass-reference
    allow_call_time_pass_reference = Off

    ; Safe Mode
    ; http://php.net/safe-mode
    safe_mode = Off

    ; By default, Safe Mode does a UID compare check when
    ; opening files. If you want to relax this to a GID compare,
    ; then turn on safe_mode_gid.
    ; http://php.net/safe-mode-gid
    safe_mode_gid = Off

    ; When safe_mode is on, UID/GID checks are bypassed when
    ; including files from this directory and its subdirectories.
    ; (directory must also be in include_path or full path must
    ; be used when including)
    ; http://php.net/safe-mode-include-dir
    safe_mode_include_dir =

    ; When safe_mode is on, only executables located in the safe_mode_exec_dir
    ; will be allowed to be executed via the exec family of functions.
    ; http://php.net/safe-mode-exec-dir
    safe_mode_exec_dir =

    ; Setting certain environment variables may be a potential security breach.
    ; This directive contains a comma-delimited list of prefixes. In Safe Mode,
    ; the user may only alter environment variables whose names begin with the
    ; prefixes supplied here. By default, users will only be able to set
    ; environment variables that begin with PHP_ (e.g. PHP_FOO=BAR).
    ; Note: If this directive is empty, PHP will let the user modify ANY
    ; environment variable!
    ; http://php.net/safe-mode-allowed-env-vars
    safe_mode_allowed_env_vars = PHP_

    ; This directive contains a comma-delimited list of environment variables that
    ; the end user won’t be able to change using putenv(). These variables will be
    ; protected even if safe_mode_allowed_env_vars is set to allow to change them.
    ; http://php.net/safe-mode-protected-env-vars
    safe_mode_protected_env_vars = LD_LIBRARY_PATH

    ; open_basedir, if set, limits all file operations to the defined directory
    ; and below. This directive makes most sense if used in a per-directory
    ; or per-virtualhost web server configuration file. This directive is
    ; *NOT* affected by whether Safe Mode is turned On or Off.
    ; http://php.net/open-basedir
    ;open_basedir =

    ; This directive allows you to disable certain functions for security reasons.
    ; It receives a comma-delimited list of function names. This directive is
    ; *NOT* affected by whether Safe Mode is turned On or Off.
    ; http://php.net/disable-functions
    disable_functions =

    ; This directive allows you to disable certain classes for security reasons.
    ; It receives a comma-delimited list of class names. This directive is
    ; *NOT* affected by whether Safe Mode is turned On or Off.
    ; http://php.net/disable-classes
    disable_classes =

    ; Colors for Syntax Highlighting mode. Anything that’s acceptable in
    ; would work.
    ; http://php.net/syntax-highlighting
    ;highlight.string = #DD0000
    ;highlight.comment = #FF9900
    ;highlight.keyword = #007700
    ;highlight.bg = #FFFFFF
    ;highlight.default = #0000BB
    ;highlight.html = #000000

    ; If enabled, the request will be allowed to complete even if the user aborts
    ; the request. Consider enabling it if executing long requests, which may end up
    ; being interrupted by the user or a browser timing out. PHP’s default behavior
    ; is to disable this feature.
    ; http://php.net/ignore-user-abort
    ;ignore_user_abort = On

    ; Determines the size of the realpath cache to be used by PHP. This value should
    ; be increased on systems where PHP opens many files to reflect the quantity of
    ; the file operations performed.
    ; http://php.net/realpath-cache-size
    ;realpath_cache_size = 16k

    ; Duration of time, in seconds for which to cache realpath information for a given
    ; file or directory. For systems with rarely changing files, consider increasing this
    ; value.
    ; http://php.net/realpath-cache-ttl
    ;realpath_cache_ttl = 120

    ;;;;;;;;;;;;;;;;;
    ; Miscellaneous ;
    ;;;;;;;;;;;;;;;;;

    ; Decides whether PHP may expose the fact that it is installed on the server
    ; (e.g. by adding its signature to the Web server header). It is no security
    ; threat in any way, but it makes it possible to determine whether you use PHP
    ; on your server or not.
    ; http://php.net/expose-php
    expose_php = On

    ;;;;;;;;;;;;;;;;;;;
    ; Resource Limits ;
    ;;;;;;;;;;;;;;;;;;;

    ; Maximum execution time of each script, in seconds
    ; http://php.net/max-execution-time
    ; Note: This directive is hardcoded to 0 for the CLI SAPI
    max_execution_time = 30

    ; Maximum amount of time each script may spend parsing request data. It’s a good
    ; idea to limit this time on productions servers in order to eliminate unexpectedly
    ; long running scripts.
    ; Note: This directive is hardcoded to -1 for the CLI SAPI
    ; Default Value: -1 (Unlimited)
    ; Development Value: 60 (60 seconds)
    ; Production Value: 60 (60 seconds)
    ; http://php.net/max-input-time
    max_input_time = 60

    ; Maximum input variable nesting level
    ; http://php.net/max-input-nesting-level
    ;max_input_nesting_level = 64

    ; Maximum amount of memory a script may consume (128MB)
    ; http://php.net/memory-limit
    memory_limit = 128M

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ; Error handling and logging ;
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    ; This directive informs PHP of which errors, warnings and notices you would like
    ; it to take action for. The recommended way of setting values for this
    ; directive is through the use of the error level constants and bitwise
    ; operators. The error level constants are below here for convenience as well as
    ; some common settings and their meanings.
    ; By default, PHP is set to take action on all errors, notices and warnings EXCEPT
    ; those related to E_NOTICE and E_STRICT, which together cover best practices and
    ; recommended coding standards in PHP. For performance reasons, this is the
    ; recommend error reporting setting. Your production server shouldn’t be wasting
    ; resources complaining about best practices and coding standards. That’s what
    ; development servers and development settings are for.
    ; Note: The php.ini-development file has this setting as E_ALL | E_STRICT. This
    ; means it pretty much reports everything which is exactly what you want during
    ; development and early testing.
    ;
    ; Error Level Constants:
    ; E_ALL – All errors and warnings (includes E_STRICT as of PHP 6.0.0)
    ; E_ERROR – fatal run-time errors
    ; E_RECOVERABLE_ERROR – almost fatal run-time errors
    ; E_WARNING – run-time warnings (non-fatal errors)
    ; E_PARSE – compile-time parse errors
    ; E_NOTICE – run-time notices (these are warnings which often result
    ; from a bug in your code, but it’s possible that it was
    ; intentional (e.g., using an uninitialized variable and
    ; relying on the fact it’s automatically initialized to an
    ; empty string)
    ; E_STRICT – run-time notices, enable to have PHP suggest changes
    ; to your code which will ensure the best interoperability
    ; and forward compatibility of your code
    ; E_CORE_ERROR – fatal errors that occur during PHP’s initial startup
    ; E_CORE_WARNING – warnings (non-fatal errors) that occur during PHP’s
    ; initial startup
    ; E_COMPILE_ERROR – fatal compile-time errors
    ; E_COMPILE_WARNING – compile-time warnings (non-fatal errors)
    ; E_USER_ERROR – user-generated error message
    ; E_USER_WARNING – user-generated warning message
    ; E_USER_NOTICE – user-generated notice message
    ; E_DEPRECATED – warn about code that will not work in future versions
    ; of PHP
    ; E_USER_DEPRECATED – user-generated deprecation warnings
    ;
    ; Common Values:
    ; E_ALL & ~E_NOTICE (Show all errors, except for notices and coding standards warnings.)
    ; E_ALL & ~E_NOTICE | E_STRICT (Show all errors, except for notices)
    ; E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR (Show only errors)
    ; E_ALL | E_STRICT (Show all errors, warnings and notices including coding standards.)
    ; Default Value: E_ALL & ~E_NOTICE
    ; Development Value: E_ALL | E_STRICT
    ; Production Value: E_ALL & ~E_DEPRECATED
    ; http://php.net/error-reporting
    error_reporting = E_ALL | E_STRICT

    ; This directive controls whether or not and where PHP will output errors,
    ; notices and warnings too. Error output is very useful during development, but
    ; it could be very dangerous in production environments. Depending on the code
    ; which is triggering the error, sensitive information could potentially leak
    ; out of your application such as database usernames and passwords or worse.
    ; It’s recommended that errors be logged on production servers rather than
    ; having the errors sent to STDOUT.
    ; Possible Values:
    ; Off = Do not display any errors
    ; stderr = Display errors to STDERR (affects only CGI/CLI binaries!)
    ; On or stdout = Display errors to STDOUT
    ; Default Value: On
    ; Development Value: On
    ; Production Value: Off
    ; http://php.net/display-errors
    display_errors = On

    ; The display of errors which occur during PHP’s startup sequence are handled
    ; separately from display_errors. PHP’s default behavior is to suppress those
    ; errors from clients. Turning the display of startup errors on can be useful in
    ; debugging configuration problems. But, it’s strongly recommended that you
    ; leave this setting off on production servers.
    ; Default Value: Off
    ; Development Value: On
    ; Production Value: Off
    ; http://php.net/display-startup-errors
    display_startup_errors = On

    ; Besides displaying errors, PHP can also log errors to locations such as a
    ; server-specific log, STDERR, or a location specified by the error_log
    ; directive found below. While errors should not be displayed on productions
    ; servers they should still be monitored and logging is a great way to do that.
    ; Default Value: Off
    ; Development Value: On
    ; Production Value: On
    ; http://php.net/log-errors
    log_errors = On

    ; Set maximum length of log_errors. In error_log information about the source is
    ; added. The default is 1024 and 0 allows to not apply any maximum length at all.
    ; http://php.net/log-errors-max-len
    log_errors_max_len = 1024

    ; Do not log repeated messages. Repeated errors must occur in same file on same
    ; line unless ignore_repeated_source is set true.
    ; http://php.net/ignore-repeated-errors
    ignore_repeated_errors = Off

    ; Ignore source of message when ignoring repeated messages. When this setting
    ; is On you will not log errors with repeated messages from different files or
    ; source lines.
    ; http://php.net/ignore-repeated-source
    ignore_repeated_source = Off

    ; If this parameter is set to Off, then memory leaks will not be shown (on
    ; stdout or in the log). This has only effect in a debug compile, and if
    ; error reporting includes E_WARNING in the allowed list
    ; http://php.net/report-memleaks
    report_memleaks = On

    ; This setting is on by default.
    ;report_zend_debug = 0

    ; Store the last error/warning message in $php_errormsg (boolean). Setting this value
    ; to On can assist in debugging and is appropriate for development servers. It should
    ; however be disabled on production servers.
    ; Default Value: Off
    ; Development Value: On
    ; Production Value: Off
    ; http://php.net/track-errors
    track_errors = On

    ; Turn off normal error reporting and emit XML-RPC error XML
    ; http://php.net/xmlrpc-errors
    ;xmlrpc_errors = 0

    ; An XML-RPC faultCode
    ;xmlrpc_error_number = 0

    ; When PHP displays or logs an error, it has the capability of inserting html
    ; links to documentation related to that error. This directive controls whether
    ; those HTML links appear in error messages or not. For performance and security
    ; reasons, it’s recommended you disable this on production servers.
    ; Note: This directive is hardcoded to Off for the CLI SAPI
    ; Default Value: On
    ; Development Value: On
    ; Production value: Off
    ; http://php.net/html-errors
    html_errors = On

    ; If html_errors is set On PHP produces clickable error messages that direct
    ; to a page describing the error or function causing the error in detail.
    ; You can download a copy of the PHP manual from http://php.net/docs
    ; and change docref_root to the base URL of your local copy including the
    ; leading ‘/’. You must also specify the file extension being used including
    ; the dot. PHP’s default behavior is to leave these settings empty.
    ; Note: Never use this feature for production boxes.
    ; http://php.net/docref-root
    ; Examples
    ;docref_root = “/phpmanual/”

    ; http://php.net/docref-ext
    ;docref_ext = .html

    ; String to output before an error message. PHP’s default behavior is to leave
    ; this setting blank.
    ; http://php.net/error-prepend-string
    ; Example:
    ;error_prepend_string = “”

    ; String to output after an error message. PHP’s default behavior is to leave
    ; this setting blank.
    ; http://php.net/error-append-string
    ; Example:
    ;error_append_string = “”

    ; Log errors to specified file. PHP’s default behavior is to leave this value
    ; empty.
    ; http://php.net/error-log
    ; Example:
    ;error_log = php_errors.log
    error_log = “C:\xampp\php\logs\php_error_log”
    ; Log errors to syslog (Event Log on NT, not valid in Windows 95).
    ;error_log = syslog

    ;;;;;;;;;;;;;;;;;
    ; Data Handling ;
    ;;;;;;;;;;;;;;;;;

    ; Note – track_vars is ALWAYS enabled

    ; The separator used in PHP generated URLs to separate arguments.
    ; PHP’s default setting is “&”.
    ; http://php.net/arg-separator.output
    ; Example:
    ;arg_separator.output = “&”

    ; List of separator(s) used by PHP to parse input URLs into variables.
    ; PHP’s default setting is “&”.
    ; NOTE: Every character in this directive is considered as separator!
    ; http://php.net/arg-separator.input
    ; Example:
    ;arg_separator.input = “;&”

    ; This directive determines which super global arrays are registered when PHP
    ; starts up. If the register_globals directive is enabled, it also determines
    ; what order variables are populated into the global space. G,P,C,E & S are
    ; abbreviations for the following respective super globals: GET, POST, COOKIE,
    ; ENV and SERVER. There is a performance penalty paid for the registration of
    ; these arrays and because ENV is not as commonly used as the others, ENV is
    ; is not recommended on productions servers. You can still get access to
    ; the environment variables through getenv() should you need to.
    ; Default Value: “EGPCS”
    ; Development Value: “GPCS”
    ; Production Value: “GPCS”;
    ; http://php.net/variables-order
    variables_order = “GPCS”

    ; This directive determines which super global data (G,P,C,E & S) should
    ; be registered into the super global array REQUEST. If so, it also determines
    ; the order in which that data is registered. The values for this directive are
    ; specified in the same manner as the variables_order directive, EXCEPT one.
    ; Leaving this value empty will cause PHP to use the value set in the
    ; variables_order directive. It does not mean it will leave the super globals
    ; array REQUEST empty.
    ; Default Value: None
    ; Development Value: “GP”
    ; Production Value: “GP”
    ; http://php.net/request-order
    request_order = “GP”

    ; Whether or not to register the EGPCS variables as global variables. You may
    ; want to turn this off if you don’t want to clutter your scripts’ global scope
    ; with user data. This makes most sense when coupled with track_vars – in which
    ; case you can access all of the GPC variables through the $HTTP_*_VARS[],
    ; variables.
    ; You should do your best to write your scripts so that they do not require
    ; register_globals to be on; Using form variables as globals can easily lead
    ; to possible security problems, if the code is not very well thought of.
    ; http://php.net/register-globals
    register_globals = Off

    ; Determines whether the deprecated long $HTTP_*_VARS type predefined variables
    ; are registered by PHP or not. As they are deprecated, we obviously don’t
    ; recommend you use them. They are on by default for compatibility reasons but
    ; they are not recommended on production servers.
    ; Default Value: On
    ; Development Value: Off
    ; Production Value: Off
    ; http://php.net/register-long-arrays
    register_long_arrays = Off

    ; This directive determines whether PHP registers $argv & $argc each time it
    ; runs. $argv contains an array of all the arguments passed to PHP when a script
    ; is invoked. $argc contains an integer representing the number of arguments
    ; that were passed when the script was invoked. These arrays are extremely
    ; useful when running scripts from the command line. When this directive is
    ; enabled, registering these variables consumes CPU cycles and memory each time
    ; a script is executed. For performance reasons, this feature should be disabled
    ; on production servers.
    ; Note: This directive is hardcoded to On for the CLI SAPI
    ; Default Value: On
    ; Development Value: Off
    ; Production Value: Off
    ; http://php.net/register-argc-argv
    register_argc_argv = Off

    ; When enabled, the SERVER and ENV variables are created when they’re first
    ; used (Just In Time) instead of when the script starts. If these variables
    ; are not used within a script, having this directive on will result in a
    ; performance gain. The PHP directives register_globals, register_long_arrays,
    ; and register_argc_argv must be disabled for this directive to have any affect.
    ; http://php.net/auto-globals-jit
    auto_globals_jit = On

    ; Maximum size of POST data that PHP will accept.
    ; http://php.net/post-max-size
    post_max_size = 8M

    ; Magic quotes are a preprocessing feature of PHP where PHP will attempt to
    ; escape any character sequences in GET, POST, COOKIE and ENV data which might
    ; otherwise corrupt data being placed in resources such as databases before
    ; making that data available to you. Because of character encoding issues and
    ; non-standard SQL implementations across many databases, it’s not currently
    ; possible for this feature to be 100% accurate. PHP’s default behavior is to
    ; enable the feature. We strongly recommend you use the escaping mechanisms
    ; designed specifically for the database your using instead of relying on this
    ; feature. Also note, this feature has been deprecated as of PHP 5.3.0 and is
    ; scheduled for removal in PHP 6.
    ; Default Value: On
    ; Development Value: Off
    ; Production Value: Off
    ; http://php.net/magic-quotes-gpc
    magic_quotes_gpc = Off

    ; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
    ; http://php.net/magic-quotes-runtime
    magic_quotes_runtime = Off

    ; Use Sybase-style magic quotes (escape ‘ with ” instead of \’).
    ; http://php.net/magic-quotes-sybase
    magic_quotes_sybase = Off

    ; Automatically add files before PHP document.
    ; http://php.net/auto-prepend-file
    auto_prepend_file =

    ; Automatically add files after PHP document.
    ; http://php.net/auto-append-file
    auto_append_file =

    ; By default, PHP will output a character encoding using
    ; the Content-type: header. To disable sending of the charset, simply
    ; set it to be empty.
    ;
    ; PHP’s built-in default is text/html
    ; http://php.net/default-mimetype
    default_mimetype = “text/html”

    ; PHP’s default character set is set to empty.
    ; http://php.net/default-charset
    ;default_charset = “iso-8859-1″

    ; Always populate the $HTTP_RAW_POST_DATA variable. PHP’s default behavior is
    ; to disable this feature.
    ; http://php.net/always-populate-raw-post-data
    ;always_populate_raw_post_data = On

    ;;;;;;;;;;;;;;;;;;;;;;;;;
    ; Paths and Directories ;
    ;;;;;;;;;;;;;;;;;;;;;;;;;

    ; UNIX: “/path1:/path2″
    ;include_path = “.:/php/includes”
    ;
    ; Windows: “\path1;\path2″
    include_path = “.;C:\xampp\php\PEAR”
    ;
    ; PHP’s default setting for include_path is “.;/path/to/php/pear”
    ; http://php.net/include-path

    ; The root of the PHP pages, used only if nonempty.
    ; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
    ; if you are running php as a CGI under any web server (other than IIS)
    ; see documentation for security issues. The alternate is to use the
    ; cgi.force_redirect configuration below
    ; http://php.net/doc-root
    doc_root =

    ; The directory under which PHP opens the script using /~username used only
    ; if nonempty.
    ; http://php.net/user-dir
    user_dir =

    ; Directory in which the loadable extensions (modules) reside.
    ; http://php.net/extension-dir
    ; extension_dir = “./”
    ; On windows:
    extension_dir = “C:\xampp\php\ext”

    ; Whether or not to enable the dl() function. The dl() function does NOT work
    ; properly in multithreaded servers, such as IIS or Zeus, and is automatically
    ; disabled on them.
    ; http://php.net/enable-dl
    enable_dl = On

    ; cgi.force_redirect is necessary to provide security running PHP as a CGI under
    ; most web servers. Left undefined, PHP turns this on by default. You can
    ; turn it off here AT YOUR OWN RISK
    ; **You CAN safely turn this off for IIS, in fact, you MUST.**
    ; http://php.net/cgi.force-redirect
    ;cgi.force_redirect = 1

    ; if cgi.nph is enabled it will force cgi to always sent Status: 200 with
    ; every request. PHP’s default behavior is to disable this feature.
    ;cgi.nph = 1

    ; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape
    ; (iPlanet) web servers, you MAY need to set an environment variable name that PHP
    ; will look for to know it is OK to continue execution. Setting this variable MAY
    ; cause security issues, KNOW WHAT YOU ARE DOING FIRST.
    ; http://php.net/cgi.redirect-status-env
    ;cgi.redirect_status_env = ;

    ; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI. PHP’s
    ; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok
    ; what PATH_INFO is. For more information on PATH_INFO, see the cgi specs. Setting
    ; this to 1 will cause PHP CGI to fix its paths to conform to the spec. A setting
    ; of zero causes PHP to behave as before. Default is 1. You should fix your scripts
    ; to use SCRIPT_FILENAME rather than PATH_TRANSLATED.
    ; http://php.net/cgi.fix-pathinfo
    ;cgi.fix_pathinfo=1

    ; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate
    ; security tokens of the calling client. This allows IIS to define the
    ; security context that the request runs under. mod_fastcgi under Apache
    ; does not currently support this feature (03/17/2002)
    ; Set to 1 if running under IIS. Default is zero.
    ; http://php.net/fastcgi.impersonate
    ;fastcgi.impersonate = 1;

    ; Disable logging through FastCGI connection. PHP’s default behavior is to enable
    ; this feature.
    ;fastcgi.logging = 0

    ; cgi.rfc2616_headers configuration option tells PHP what type of headers to
    ; use when sending HTTP response code. If it’s set 0 PHP sends Status: header that
    ; is supported by Apache. When this option is set to 1 PHP will send
    ; RFC2616 compliant header.
    ; Default is zero.
    ; http://php.net/cgi.rfc2616-headers
    ;cgi.rfc2616_headers = 0

    ;;;;;;;;;;;;;;;;
    ; File Uploads ;
    ;;;;;;;;;;;;;;;;

    ; Whether to allow HTTP file uploads.
    ; http://php.net/file-uploads
    file_uploads = On

    ; Temporary directory for HTTP uploaded files (will use system default if not
    ; specified).
    ; http://php.net/upload-tmp-dir
    upload_tmp_dir = “C:\xampp\tmp”

    ; Maximum allowed size for uploaded files.
    ; http://php.net/upload-max-filesize
    upload_max_filesize = 128M

    ;;;;;;;;;;;;;;;;;;
    ; Fopen wrappers ;
    ;;;;;;;;;;;;;;;;;;

    ; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
    ; http://php.net/allow-url-fopen
    allow_url_fopen = On

    ; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
    ; http://php.net/allow-url-include
    allow_url_include = Off

    ; Define the anonymous ftp password (your email address). PHP’s default setting
    ; for this is empty.
    ; http://php.net/from
    ;from=”john@doe.com”

    ; Define the User-Agent string. PHP’s default setting for this is empty.
    ; http://php.net/user-agent
    ;user_agent=”PHP”

    ; Default timeout for socket based streams (seconds)
    ; http://php.net/default-socket-timeout
    default_socket_timeout = 60

    ; If your scripts have to deal with files from Macintosh systems,
    ; or you are running on a Mac and need to deal with files from
    ; unix or win32 systems, setting this flag will cause PHP to
    ; automatically detect the EOL character in those files so that
    ; fgets() and file() will work regardless of the source of the file.
    ; http://php.net/auto-detect-line-endings
    ;auto_detect_line_endings = Off

    ;;;;;;;;;;;;;;;;;;;;;;
    ; Dynamic Extensions ;
    ;;;;;;;;;;;;;;;;;;;;;;

    ; If you wish to have an extension loaded automatically, use the following
    ; syntax:
    ;
    ; extension=modulename.extension
    ;
    ; For example, on Windows:
    ;
    ; extension=msql.dll
    ;
    ; … or under UNIX:
    ;
    ; extension=msql.so
    ;
    ; … or with a path:
    ;
    ; extension=/path/to/extension/msql.so
    ;
    ; If you only provide the name of the extension, PHP will look for it in its
    ; default extension directory.
    ;
    ; Windows Extensions
    ; Note that ODBC support is built in, so no dll is needed for it.
    ; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5)
    ; extension folders as well as the separate PECL DLL download (PHP 5).
    ; Be sure to appropriately set the extension_dir directive.

    extension=php_bz2.dll
    ;extension=php_curl.dll
    ;extension=php_dba.dll
    extension=php_mbstring.dll
    extension=php_exif.dll
    ;extension=php_fileinfo.dll
    extension=php_gd2.dll
    extension=php_gettext.dll
    ;extension=php_gmp.dll
    extension=php_imap.dll
    ;extension=php_interbase.dll
    ;extension=php_ldap.dll
    ;extension=php_mssql.dll
    ;extension=php_mysql_mysqlnd.dll
    extension=php_mysql.dll
    ;extension=php_mysqli_mysqlnd.dll
    extension=php_mysqli.dll
    ;extension=php_oci8.dll
    ;extension=php_pdo_firebird.dll
    ;extension=php_pdo_mssql.dll
    ;extension=php_pdo_mysql_mysqlnd.dll
    extension=php_pdo_mysql.dll
    extension=php_pdo_odbc.dll
    ;extension=php_pdo_pgsql.dll
    extension=php_pdo_sqlite.dll
    ;extension=php_pdo_sqlite_external.dll
    ;extension=php_pgsql.dll
    ;extension=php_pspell.dll
    ;extension=php_shmop.dll
    ;extension=php_snmp.dll
    extension=php_soap.dll
    extension=php_sockets.dll
    extension=php_sqlite.dll
    extension=php_sqlite3.dll
    ;extension=php_sybase_ct.dll
    ;extension=php_tidy.dll
    extension=php_xmlrpc.dll

    [PECL]
    ;extension=php_ming.dll
    ;extension=php_pdo_oci.dll
    ;extension=php_pdo_oci8.dll

    ;;;;;;;;;;;;;;;;;;;
    ; Module Settings ;
    ;;;;;;;;;;;;;;;;;;;

    [Date]
    ; Defines the default timezone used by the date functions
    ; http://php.net/date.timezone
    date.timezone = Europe/Berlin

    ; http://php.net/date.default-latitude
    ;date.default_latitude = 31.7667

    ; http://php.net/date.default-longitude
    ;date.default_longitude = 35.2333

    ; http://php.net/date.sunrise-zenith
    ;date.sunrise_zenith = 90.583333

    ; http://php.net/date.sunset-zenith
    ;date.sunset_zenith = 90.583333

    [filter]
    ; http://php.net/filter.default
    ;filter.default = unsafe_raw

    ; http://php.net/filter.default-flags
    ;filter.default_flags =

    [iconv]
    ;iconv.input_encoding = ISO-8859-1
    ;iconv.internal_encoding = ISO-8859-1
    ;iconv.output_encoding = ISO-8859-1

    [intl]
    ;intl.default_locale =
    ; This directive allows you to produce PHP errors when some error
    ; happens within intl functions. The value is the level of the error produced.
    ; Default is 0, which does not produce any errors.
    ;intl.error_level = E_WARNING

    [sqlite]
    ; http://php.net/sqlite.assoc-case
    ;sqlite.assoc_case = 0

    [sqlite3]
    ;sqlite3.extension_dir =

    [Pcre]
    ;PCRE library backtracking limit.
    ; http://php.net/pcre.backtrack-limit
    ;pcre.backtrack_limit=100000

    ;PCRE library recursion limit.
    ;Please note that if you set this value to a high number you may consume all
    ;the available process stack and eventually crash PHP (due to reaching the
    ;stack size limit imposed by the Operating System).
    ; http://php.net/pcre.recursion-limit
    ;pcre.recursion_limit=100000

    [Pdo]
    ; Whether to pool ODBC connections. Can be one of “strict”, “relaxed” or “off”
    ; http://php.net/pdo-odbc.connection-pooling
    ;pdo_odbc.connection_pooling=strict

    ;pdo_odbc.db2_instance_name

    [Pdo_mysql]
    ; If mysqlnd is used: Number of cache slots for the internal result set cache
    ; http://php.net/pdo_mysql.cache_size
    pdo_mysql.cache_size = 2000

    ; Default socket name for local MySQL connects. If empty, uses the built-in
    ; MySQL defaults.
    ; http://php.net/pdo_mysql.default-socket
    pdo_mysql.default_socket = “MySQL”

    [Phar]
    ; http://php.net/phar.readonly
    ;phar.readonly = On

    ; http://php.net/phar.require-hash
    ;phar.require_hash = On

    ;phar.cache_list =

    [Syslog]
    ; Whether or not to define the various syslog variables (e.g. $LOG_PID,
    ; $LOG_CRON, etc.). Turning it off is a good idea performance-wise. In
    ; runtime, you can define these variables by calling define_syslog_variables().
    ; http://php.net/define-syslog-variables
    define_syslog_variables = Off

    [mail function]
    ; For Win32 only.
    ; http://php.net/smtp
    SMTP = localhost
    ; http://php.net/smtp-port
    smtp_port = 25

    ; For Win32 only.
    ; http://php.net/sendmail-from
    sendmail_from = **************@gmail.com

    ; For Unix only. You may supply arguments as well (default: “sendmail -t -i”).
    ; http://php.net/sendmail-path
    sendmail_path = “C:\xampp\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
    ; the 5th parameter to mail(), even in safe mode.
    ;mail.force_extra_parameters =

    ; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
    mail.add_x_header = Off

    ; Log all mail() calls including the full path of the script, line #, to address and headers
    ;mail.log = “C:\xampp\php\logs\php_mail.log”

    [SQL]
    ; http://php.net/sql.safe-mode
    sql.safe_mode = Off

    [ODBC]
    ; http://php.net/odbc.default-db
    ;odbc.default_db = Not yet implemented

    ; http://php.net/odbc.default-user
    ;odbc.default_user = Not yet implemented

    ; http://php.net/odbc.default-pw
    ;odbc.default_pw = Not yet implemented

    ; Controls the ODBC cursor model.
    ; Default: SQL_CURSOR_STATIC (default).
    ;odbc.default_cursortype

    ; Allow or prevent persistent links.
    ; http://php.net/odbc.allow-persistent
    odbc.allow_persistent = On

    ; Check that a connection is still valid before reuse.
    ; http://php.net/odbc.check-persistent
    odbc.check_persistent = On

    ; Maximum number of persistent links. -1 means no limit.
    ; http://php.net/odbc.max-persistent
    odbc.max_persistent = -1

    ; Maximum number of links (persistent + non-persistent). -1 means no limit.
    ; http://php.net/odbc.max-links
    odbc.max_links = -1

    ; Handling of LONG fields. Returns number of bytes to variables. 0 means
    ; passthru.
    ; http://php.net/odbc.defaultlrl
    odbc.defaultlrl = 4096

    ; Handling of binary data. 0 means passthru, 1 return as is, 2 convert to char.
    ; See the documentation on odbc_binmode and odbc_longreadlen for an explanation
    ; of odbc.defaultlrl and odbc.defaultbinmode
    ; http://php.net/odbc.defaultbinmode
    odbc.defaultbinmode = 1

    ;birdstep.max_links = -1

    [Interbase]
    ; Allow or prevent persistent links.
    ibase.allow_persistent = 1

    ; Maximum number of persistent links. -1 means no limit.
    ibase.max_persistent = -1

    ; Maximum number of links (persistent + non-persistent). -1 means no limit.
    ibase.max_links = -1

    ; Default database name for ibase_connect().
    ;ibase.default_db =

    ; Default username for ibase_connect().
    ;ibase.default_user =

    ; Default password for ibase_connect().
    ;ibase.default_password =

    ; Default charset for ibase_connect().
    ;ibase.default_charset =

    ; Default timestamp format.
    ibase.timestampformat = “%Y-%m-%d %H:%M:%S”

    ; Default date format.
    ibase.dateformat = “%Y-%m-%d”

    ; Default time format.
    ibase.timeformat = “%H:%M:%S”

    [MySQL]
    ; Allow accessing, from PHP’s perspective, local files with LOAD DATA statements
    ; http://php.net/mysql.allow_local_infile
    mysql.allow_local_infile = On

    ; Allow or prevent persistent links.
    ; http://php.net/mysql.allow-persistent
    mysql.allow_persistent = On

    ; If mysqlnd is used: Number of cache slots for the internal result set cache
    ; http://php.net/mysql.cache_size
    mysql.cache_size = 2000

    ; Maximum number of persistent links. -1 means no limit.
    ; http://php.net/mysql.max-persistent
    mysql.max_persistent = -1

    ; Maximum number of links (persistent + non-persistent). -1 means no limit.
    ; http://php.net/mysql.max-links
    mysql.max_links = -1

    ; Default port number for mysql_connect(). If unset, mysql_connect() will use
    ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
    ; compile-time value defined MYSQL_PORT (in that order). Win32 will only look
    ; at MYSQL_PORT.
    ; http://php.net/mysql.default-port
    mysql.default_port = 3306

    ; Default socket name for local MySQL connects. If empty, uses the built-in
    ; MySQL defaults.
    ; http://php.net/mysql.default-socket
    mysql.default_socket = “MySQL”

    ; Default host for mysql_connect() (doesn’t apply in safe mode).
    ; http://php.net/mysql.default-host
    mysql.default_host =

    ; Default user for mysql_connect() (doesn’t apply in safe mode).
    ; http://php.net/mysql.default-user
    mysql.default_user =

    ; Default password for mysql_connect() (doesn’t apply in safe mode).
    ; Note that this is generally a *bad* idea to store passwords in this file.
    ; *Any* user with PHP access can run ‘echo get_cfg_var(“mysql.default_password”)
    ; and reveal this password! And of course, any users with read access to this
    ; file will be able to reveal the password as well.
    ; http://php.net/mysql.default-password
    mysql.default_password =

    ; Maximum time (in seconds) for connect timeout. -1 means no limit
    ; http://php.net/mysql.connect-timeout
    mysql.connect_timeout = 3

    ; Trace mode. When trace_mode is active (=On), warnings for table/index scans and
    ; SQL-Errors will be displayed.
    ; http://php.net/mysql.trace-mode
    mysql.trace_mode = Off

    [MySQLi]

    ; Maximum number of persistent links. -1 means no limit.
    ; http://php.net/mysqli.max-persistent
    mysqli.max_persistent = -1

    ; Allow accessing, from PHP’s perspective, local files with LOAD DATA statements
    ; http://php.net/mysqli.allow_local_infile
    mysqli.allow_local_infile = On

    ; Allow or prevent persistent links.
    ; http://php.net/mysqli.allow-persistent
    mysqli.allow_persistent = On

    ; Maximum number of links. -1 means no limit.
    ; http://php.net/mysqli.max-links
    mysqli.max_links = -1

    ; If mysqlnd is used: Number of cache slots for the internal result set cache
    ; http://php.net/mysqli.cache_size
    mysqli.cache_size = 2000

    ; Default port number for mysqli_connect(). If unset, mysqli_connect() will use
    ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
    ; compile-time value defined MYSQL_PORT (in that order). Win32 will only look
    ; at MYSQL_PORT.
    ; http://php.net/mysqli.default-port
    mysqli.default_port = 3306

    ; Default socket name for local MySQL connects. If empty, uses the built-in
    ; MySQL defaults.
    ; http://php.net/mysqli.default-socket
    mysqli.default_socket = “MySQL”

    ; Default host for mysql_connect() (doesn’t apply in safe mode).
    ; http://php.net/mysqli.default-host
    mysqli.default_host =

    ; Default user for mysql_connect() (doesn’t apply in safe mode).
    ; http://php.net/mysqli.default-user
    mysqli.default_user =

    ; Default password for mysqli_connect() (doesn’t apply in safe mode).
    ; Note that this is generally a *bad* idea to store passwords in this file.
    ; *Any* user with PHP access can run ‘echo get_cfg_var(“mysqli.default_pw”)
    ; and reveal this password! And of course, any users with read access to this
    ; file will be able to reveal the password as well.
    ; http://php.net/mysqli.default-pw
    mysqli.default_pw =

    ; Allow or prevent reconnect
    mysqli.reconnect = Off

    [mysqlnd]
    ; Enable / Disable collection of general statstics by mysqlnd which can be
    ; used to tune and monitor MySQL operations.
    ; http://php.net/mysqlnd.collect_statistics
    mysqlnd.collect_statistics = On

    ; Enable / Disable collection of memory usage statstics by mysqlnd which can be
    ; used to tune and monitor MySQL operations.
    ; http://php.net/mysqlnd.collect_memory_statistics
    mysqlnd.collect_memory_statistics = Off

    ; Size of a pre-allocated buffer used when sending commands to MySQL in bytes.
    ; http://php.net/mysqlnd.net_cmd_buffer_size
    ;mysqlnd.net_cmd_buffer_size = 2048

    ; Size of a pre-allocated buffer used for reading data sent by the server in
    ; bytes.
    ; http://php.net/mysqlnd.net_read_buffer_size
    ;mysqlnd.net_read_buffer_size = 32768

    [OCI8]

    ; Connection: Enables privileged connections using external
    ; credentials (OCI_SYSOPER, OCI_SYSDBA)
    ; http://php.net/oci8.privileged-connect
    ;oci8.privileged_connect = Off

    ; Connection: The maximum number of persistent OCI8 connections per
    ; process. Using -1 means no limit.
    ; http://php.net/oci8.max-persistent
    ;oci8.max_persistent = -1

    ; Connection: The maximum number of seconds a process is allowed to
    ; maintain an idle persistent connection. Using -1 means idle
    ; persistent connections will be maintained forever.
    ; http://php.net/oci8.persistent-timeout
    ;oci8.persistent_timeout = -1

    ; Connection: The number of seconds that must pass before issuing a
    ; ping during oci_pconnect() to check the connection validity. When
    ; set to 0, each oci_pconnect() will cause a ping. Using -1 disables
    ; pings completely.
    ; http://php.net/oci8.ping-interval
    ;oci8.ping_interval = 60

    ; Connection: Set this to a user chosen connection class to be used
    ; for all pooled server requests with Oracle 11g Database Resident
    ; Connection Pooling (DRCP). To use DRCP, this value should be set to
    ; the same string for all web servers running the same application,
    ; the database pool must be configured, and the connection string must
    ; specify to use a pooled server.
    ;oci8.connection_class =

    ; High Availability: Using On lets PHP receive Fast Application
    ; Notification (FAN) events generated when a database node fails. The
    ; database must also be configured to post FAN events.
    ;oci8.events = Off

    ; Tuning: This option enables statement caching, and specifies how
    ; many statements to cache. Using 0 disables statement caching.
    ; http://php.net/oci8.statement-cache-size
    ;oci8.statement_cache_size = 20

    ; Tuning: Enables statement prefetching and sets the default number of
    ; rows that will be fetched automatically after statement execution.
    ; http://php.net/oci8.default-prefetch
    ;oci8.default_prefetch = 100

    ; Compatibility. Using On means oci_close() will not close
    ; oci_connect() and oci_new_connect() connections.
    ; http://php.net/oci8.old-oci-close-semantics
    ;oci8.old_oci_close_semantics = Off

    [PostgresSQL]
    ; Allow or prevent persistent links.
    ; http://php.net/pgsql.allow-persistent
    pgsql.allow_persistent = On

    ; Detect broken persistent links always with pg_pconnect().
    ; Auto reset feature requires a little overheads.
    ; http://php.net/pgsql.auto-reset-persistent
    pgsql.auto_reset_persistent = Off

    ; Maximum number of persistent links. -1 means no limit.
    ; http://php.net/pgsql.max-persistent
    pgsql.max_persistent = -1

    ; Maximum number of links (persistent+non persistent). -1 means no limit.
    ; http://php.net/pgsql.max-links
    pgsql.max_links = -1

    ; Ignore PostgreSQL backends Notice message or not.
    ; Notice message logging require a little overheads.
    ; http://php.net/pgsql.ignore-notice
    pgsql.ignore_notice = 0

    ; Log PostgreSQL backends Noitce message or not.
    ; Unless pgsql.ignore_notice=0, module cannot log notice message.
    ; http://php.net/pgsql.log-notice
    pgsql.log_notice = 0

    [Sybase-CT]
    ; Allow or prevent persistent links.
    ; http://php.net/sybct.allow-persistent
    sybct.allow_persistent = On

    ; Maximum number of persistent links. -1 means no limit.
    ; http://php.net/sybct.max-persistent
    sybct.max_persistent = -1

    ; Maximum number of links (persistent + non-persistent). -1 means no limit.
    ; http://php.net/sybct.max-links
    sybct.max_links = -1

    ; Minimum server message severity to display.
    ; http://php.net/sybct.min-server-severity
    sybct.min_server_severity = 10

    ; Minimum client message severity to display.
    ; http://php.net/sybct.min-client-severity
    sybct.min_client_severity = 10

    ; Set per-context timeout
    ; http://php.net/sybct.timeout
    ;sybct.timeout=

    ;sybct.packet_size

    ; The maximum time in seconds to wait for a connection attempt to succeed before returning failure.
    ; Default: one minute
    ;sybct.login_timeout=

    ; The name of the host you claim to be connecting from, for display by sp_who.
    ; Default: none
    ;sybct.hostname=

    ; Allows you to define how often deadlocks are to be retried. -1 means “forever”.
    ; Default: 0
    ;sybct.deadlock_retry_count=

    [bcmath]
    ; Number of decimal digits for all bcmath functions.
    ; http://php.net/bcmath.scale
    bcmath.scale = 0

    [browscap]
    ; http://php.net/browscap
    browscap = “C:\xampp\php\extras\browscap.ini”

    [Session]
    ; Handler used to store/retrieve data.
    ; http://php.net/session.save-handler
    session.save_handler = files

    ; Argument passed to save_handler. In the case of files, this is the path
    ; where data files are stored. Note: Windows users have to change this
    ; variable in order to use PHP’s session functions.
    ;
    ; The path can be defined as:
    ;
    ; session.save_path = “N;/path”
    ;
    ; where N is an integer. Instead of storing all the session files in
    ; /path, what this will do is use subdirectories N-levels deep, and
    ; store the session data in those directories. This is useful if you
    ; or your OS have problems with lots of files in one directory, and is
    ; a more efficient layout for servers that handle lots of sessions.
    ;
    ; NOTE 1: PHP will not create this directory structure automatically.
    ; You can use the script in the ext/session dir for that purpose.
    ; NOTE 2: See the section on garbage collection below if you choose to
    ; use subdirectories for session storage
    ;
    ; The file storage module creates files using mode 600 by default.
    ; You can change that by using
    ;
    ; session.save_path = “N;MODE;/path”
    ;
    ; where MODE is the octal representation of the mode. Note that this
    ; does not overwrite the process’s umask.
    ; http://php.net/session.save-path
    session.save_path = “C:\xampp\tmp”

    ; Whether to use cookies.
    ; http://php.net/session.use-cookies
    session.use_cookies = 1

    ; http://php.net/session.cookie-secure
    ;session.cookie_secure =

    ; This option forces PHP to fetch and use a cookie for storing and maintaining
    ; the session id. We encourage this operation as it’s very helpful in combatting
    ; session hijacking when not specifying and managing your own session id. It is
    ; not the end all be all of session hijacking defense, but it’s a good start.
    ; http://php.net/session.use-only-cookies
    session.use_only_cookies = 0

    ; Name of the session (used as cookie name).
    ; http://php.net/session.name
    session.name = PHPSESSID

    ; Initialize session on request startup.
    ; http://php.net/session.auto-start
    session.auto_start = 0

    ; Lifetime in seconds of cookie or, if 0, until browser is restarted.
    ; http://php.net/session.cookie-lifetime
    session.cookie_lifetime = 0

    ; The path for which the cookie is valid.
    ; http://php.net/session.cookie-path
    session.cookie_path = /

    ; The domain for which the cookie is valid.
    ; http://php.net/session.cookie-domain
    session.cookie_domain =

    ; Whether or not to add the httpOnly flag to the cookie, which makes it inaccessible to browser scripting languages such as JavaScript.
    ; http://php.net/session.cookie-httponly
    session.cookie_httponly =

    ; Handler used to serialize data. php is the standard serializer of PHP.
    ; http://php.net/session.serialize-handler
    session.serialize_handler = php

    ; Defines the probability that the ‘garbage collection’ process is started
    ; on every session initialization. The probability is calculated by using
    ; gc_probability/gc_divisor. Where session.gc_probability is the numerator
    ; and gc_divisor is the denominator in the equation. Setting this value to 1
    ; when the session.gc_divisor value is 100 will give you approximately a 1% chance
    ; the gc will run on any give request.
    ; Default Value: 1
    ; Development Value: 1
    ; Production Value: 1
    ; http://php.net/session.gc-probability
    session.gc_probability = 1

    ; Defines the probability that the ‘garbage collection’ process is started on every
    ; session initialization. The probability is calculated by using the following equation:
    ; gc_probability/gc_divisor. Where session.gc_probability is the numerator and
    ; session.gc_divisor is the denominator in the equation. Setting this value to 1
    ; when the session.gc_divisor value is 100 will give you approximately a 1% chance
    ; the gc will run on any give request. Increasing this value to 1000 will give you
    ; a 0.1% chance the gc will run on any give request. For high volume production servers,
    ; this is a more efficient approach.
    ; Default Value: 100
    ; Development Value: 1000
    ; Production Value: 1000
    ; http://php.net/session.gc-divisor
    session.gc_divisor = 100

    ; After this number of seconds, stored data will be seen as ‘garbage’ and
    ; cleaned up by the garbage collection process.
    ; http://php.net/session.gc-maxlifetime
    session.gc_maxlifetime = 1440

    ; NOTE: If you are using the subdirectory option for storing session files
    ; (see session.save_path above), then garbage collection does *not*
    ; happen automatically. You will need to do your own garbage
    ; collection through a shell script, cron entry, or some other method.
    ; For example, the following script would is the equivalent of
    ; setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):
    ; cd /path/to/sessions; find -cmin +24 | xargs rm

    ; PHP 4.2 and less have an undocumented feature/bug that allows you to
    ; to initialize a session variable in the global scope, even when register_globals
    ; is disabled. PHP 4.3 and later will warn you, if this feature is used.
    ; You can disable the feature and the warning separately. At this time,
    ; the warning is only displayed, if bug_compat_42 is enabled. This feature
    ; introduces some serious security problems if not handled correctly. It’s
    ; recommended that you do not use this feature on production servers. But you
    ; should enable this on development servers and enable the warning as well. If you
    ; do not enable the feature on development servers, you won’t be warned when it’s
    ; used and debugging errors caused by this can be difficult to track down.
    ; Default Value: On
    ; Development Value: On
    ; Production Value: Off
    ; http://php.net/session.bug-compat-42
    session.bug_compat_42 = On

    ; This setting controls whether or not you are warned by PHP when initializing a
    ; session value into the global space. session.bug_compat_42 must be enabled before
    ; these warnings can be issued by PHP. See the directive above for more information.
    ; Default Value: On
    ; Development Value: On
    ; Production Value: Off
    ; http://php.net/session.bug-compat-warn
    session.bug_compat_warn = On

    ; Check HTTP Referer to invalidate externally stored URLs containing ids.
    ; HTTP_REFERER has to contain this substring for the session to be
    ; considered as valid.
    ; http://php.net/session.referer-check
    session.referer_check =

    ; How many bytes to read from the file.
    ; http://php.net/session.entropy-length
    session.entropy_length = 0

    ; Specified here to create the session id.
    ; http://php.net/session.entropy-file
    ; On systems that don’t have /dev/urandom /dev/arandom can be used
    ; On windows, setting the entropy_length setting will activate the
    ; Windows random source (using the CryptoAPI)
    ;session.entropy_file = /dev/urandom
    session.entropy_file =

    ; http://php.net/session.entropy-length
    ;session.entropy_length = 16

    ; Set to {nocache,private,public,} to determine HTTP caching aspects
    ; or leave this empty to avoid sending anti-caching headers.
    ; http://php.net/session.cache-limiter
    session.cache_limiter = nocache

    ; Document expires after n minutes.
    ; http://php.net/session.cache-expire
    session.cache_expire = 180

    ; trans sid support is disabled by default.
    ; Use of trans sid may risk your users security.
    ; Use this option with caution.
    ; – User may send URL contains active session ID
    ; to other person via. email/irc/etc.
    ; – URL that contains active session ID may be stored
    ; in publically accessible computer.
    ; – User may access your site with the same session ID
    ; always using URL stored in browser’s history or bookmarks.
    ; http://php.net/session.use-trans-sid
    session.use_trans_sid = 0

    ; Select a hash function for use in generating session ids.
    ; Possible Values
    ; 0 (MD5 128 bits)
    ; 1 (SHA-1 160 bits)
    ; This option may also be set to the name of any hash function supported by
    ; the hash extension. A list of available hashes is returned by the hash_algos()
    ; function.
    ; http://php.net/session.hash-function
    session.hash_function = 0

    ; Define how many bits are stored in each character when converting
    ; the binary hash data to something readable.
    ; Possible values:
    ; 4 (4 bits: 0-9, a-f)
    ; 5 (5 bits: 0-9, a-v)
    ; 6 (6 bits: 0-9, a-z, A-Z, “-“, “,”)
    ; Default Value: 4
    ; Development Value: 5
    ; Production Value: 5
    ; http://php.net/session.hash-bits-per-character
    session.hash_bits_per_character = 5

    ; The URL rewriter will look for URLs in a defined set of HTML tags.
    ; form/fieldset are special; if you include them here, the rewriter will
    ; add a hidden field with the info which is otherwise appended
    ; to URLs. If you want XHTML conformity, remove the form entry.
    ; Note that all valid entries require a “=”, even if no value follows.
    ; Default Value: “a=href,area=href,frame=src,form=,fieldset=”
    ; Development Value: “a=href,area=href,frame=src,input=src,form=fakeentry”
    ; Production Value: “a=href,area=href,frame=src,input=src,form=fakeentry”
    ; http://php.net/url-rewriter.tags
    url_rewriter.tags = “a=href,area=href,frame=src,input=src,form=,fieldset=”

    [MSSQL]
    ; Allow or prevent persistent links.
    mssql.allow_persistent = On

    ; Maximum number of persistent links. -1 means no limit.
    mssql.max_persistent = -1

    ; Maximum number of links (persistent+non persistent). -1 means no limit.
    mssql.max_links = -1

    ; Minimum error severity to display.
    mssql.min_error_severity = 10

    ; Minimum message severity to display.
    mssql.min_message_severity = 10

    ; Compatibility mode with old versions of PHP 3.0.
    mssql.compatability_mode = Off

    ; Connect timeout
    ;mssql.connect_timeout = 5

    ; Query timeout
    ;mssql.timeout = 60

    ; Valid range 0 – 2147483647. Default = 4096.
    ;mssql.textlimit = 4096

    ; Valid range 0 – 2147483647. Default = 4096.
    ;mssql.textsize = 4096

    ; Limits the number of records in each batch. 0 = all records in one batch.
    ;mssql.batchsize = 0

    ; Specify how datetime and datetim4 columns are returned
    ; On => Returns data converted to SQL server settings
    ; Off => Returns values as YYYY-MM-DD hh:mm:ss
    ;mssql.datetimeconvert = On

    ; Use NT authentication when connecting to the server
    mssql.secure_connection = Off

    ; Specify max number of processes. -1 = library default
    ; msdlib defaults to 25
    ; FreeTDS defaults to 4096
    ;mssql.max_procs = -1

    ; Specify client character set.
    ; If empty or not set the client charset from freetds.comf is used
    ; This is only used when compiled with FreeTDS
    ;mssql.charset = “ISO-8859-1″

    [Assertion]
    ; Assert(expr); active by default.
    ; http://php.net/assert.active
    ;assert.active = On

    ; Issue a PHP warning for each failed assertion.
    ; http://php.net/assert.warning
    ;assert.warning = On

    ; Don’t bail out by default.
    ; http://php.net/assert.bail
    ;assert.bail

    • Energeiz
    • December 20th, 2011

    succes but not receive >.<
    no error T_T.

    ——————————————————————————————
    php.ini

    [mail function]
    ; For Win32 only.
    ; http://php.net/smtp
    SMTP = localhost
    ; http://php.net/smtp-port
    smtp_port = 25

    ; For Win32 only.
    ; http://php.net/sendmail-from
    sendmail_from = *************@gmail.com

    ; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
    ; http://php.net/sendmail-path
    sendmail_path = "C:\xampp\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
    ; the 5th parameter to mail(), even in safe mode.
    ;mail.force_extra_parameters =

    ; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
    mail.add_x_header = Off

    ; Log all mail() calls including the full path of the script, line #, to address and headers
    ;mail.log = "C:\xampp\php\logs\php_mail.log"

    ——————————————————————————————
    sendmail.ini

    defaults
    logfile "C:\xampp\sendmail\sendmail.log"

    # SMTP Gmail
    account Gmail
    tls on
    tls_certcheck off
    host smtp.gmail.com
    from ***********@gmail.com
    auth on
    user ***********@gmail.com
    password *************

    account default : Gmail

    ——————————————————————————————php test

    <?php
    $from_name = "Energeiz";
    $from_email = "***********@gmail.com";
    $headers = "From: $from_name “;
    $body = “Hi, \nThis is a test mail from $from_name .”;
    $subject = “Test mail from Energeiz”;
    $to = “************@yahoo.co.uk”;

    if (mail($to, $subject, $body, $headers)) {
    echo “success!”;
    } else {
    echo “fail…”;
    }
    ?>

    what should i do next?

    thanks

  11. Hi Energeiz in the sendmail_path in php.ini file there has to be a space between sendmail.exe and -t. After you add this space restart the server and then execute your program and your mail will be sent successfully.

      • Energeiz
      • December 22nd, 2011

      Hi, Pallavi.

      Still not received >.<
      i use xampp 1.7.7.
      there is something must set beside php.ini and sendmail.ini?

      thanks before.

    • Energeiz
    • December 22nd, 2011

    Hi, Pallavi.

    Still not received >.<
    i use xampp 1.7.7.
    there is something must set beside php.ini and sendmail.ini?

    thanks.

    • Hi Energeiz….check if you have any error messages in the log files to get some clue about the problem. hope you are able to solve it.

    • AstergogefsoF
    • December 29th, 2011

    Summerinaskinalk

  12. Brilliant, works a treat! Thank you!

    • prudhvi
    • February 27th, 2012

    Hi Pallavi..

    mail is not coming.. In browser it is showing success messages…
    Plz help me ASAP………….
    No errors in log file…..

    I modified like this..

    ***********php.ini

    [mail function]
    ; For Win32 only.
    ; http://php.net/smtp
    SMTP = localhost
    ; http://php.net/smtp-port
    smtp_port = 25

    ; For Win32 only.
    ; http://php.net/sendmail-from
    ;sendmail_from =

    ; For Unix only. You may supply arguments as well (default: “sendmail -t -i”).
    ; http://php.net/sendmail-path
    sendmail_path = “C:\xampplite\sendmail\sendmail.exe -t”

    *********sendmail.ini

    # Example for a user configuration file

    # Set default values for all following accounts.
    defaults
    logfile “\xampplite\sendmail\sendmail.log”

    # Mercury
    #account Mercury
    #host localhost
    #from postmaster@localhost
    #auth off

    # A freemail service example
    #account Hotmail
    #tls on
    #tls_certcheck off
    #host smtp.live.com
    #from [exampleuser]@hotmail.com
    #auth on
    #user [exampleuser]@hotmail.com
    #password [examplepassword]

    # Set a default account

    account Gmail
    tls on
    tls_certcheck off
    host smtp.gmail.com
    from prudhvikumar07@gmail.com
    auth on
    user prudhvikumar07@gmail.com
    password ************
    account default : Gmail

    mail.php

      • prudhvi
      • February 27th, 2012

      mail.php

        • prudhvi
        • February 27th, 2012

        mail.php

    • prudhvi
    • February 27th, 2012

    mail_log…………………………
    mail() on [C:\xampplite\htdocs\mail.php:9]: To: prudhvikumar07@gmail.com — Headers:
    mail() on [C:\xampplite\htdocs\mail.php:9]: To: prudhvikumar07@gmail.com — Headers:
    mail() on [C:\xampplite\htdocs\mail.php:5]: To: prudhvikumar07@gmail.com — Headers:
    mail() on [C:\xampplite\htdocs\mail.php:5]: To: prudhvikumar07@gmail.com — Headers:
    mail() on [C:\xampplite\htdocs\mail.php:5]: To: prudhvikumar07@gmail.com — Headers:
    mail() on [C:\xampplite\htdocs\mail.php:5]: To: prudhvikumar07@gmail.com — Headers:

    • prudhvi
    • February 27th, 2012

    error.log

    sendmail.exe: cannot connect to smtp.gmail.com, port 25: Network is unreachable
    sendmail.exe: could not send mail (account default from C:\xampplite\sendmail\sendmail.ini)

  13. I successfully get the message sent.but did not receive in my inbox. below is my php.ini file

    ; For Win32 only.
    ; http://php.net/smtp
    SMTP = localhost
    ; http://php.net/smtp-port
    smtp_port = 25

    ; For Win32 only.
    ; http://php.net/sendmail-from
    sendmail_from = syarmil@gmail.com

    ; For Unix only. You may supply arguments as well (default: “sendmail -t -i”).
    ; http://php.net/sendmail-path
    sendmail_path = “C:\xampp\sendmail\sendmail.exe\ -t”

    can someoone help me?

  14. http://www.sotsialnye-seti.ru/index/odnoklassniki/0-4 вопросы и жалобы на сайте одноклассники.ру

  15. http://www.recept-prigotovleniya.ru/ найти рецепт приготовления цыпленок табака

    • Fiz
    • April 17th, 2012

    Please help me, i got this error in my apache log file. then i couldnt get the email in inbox….

    sendmail: Error during delivery: Socket Error # 10061
    Connection refused.

    • jayshree
    • May 9th, 2012

    Hi Pallavi
    Great Post .The steps are very clear .I am able to send the message but not recieving it in my gmail inbox.
    I have tried setting the port at 567 or 485 or 25 .all work the same .no email recived ..also i have tried starting the apache after every change yet no results .Kindly help ..

    sendmail.ini
    ———————–
    # Mercury
    #account Mercury
    #host localhost
    #from postmaster@localhost
    #auth off

    # A freemail service example
    #account Hotmail
    #tls on
    #tls_certcheck off
    #host smtp.live.com
    #from [exampleuser]@hotmail.com
    #auth on
    #user [exampleuser]@hotmail.com
    #password [examplepassword]

    # Example for a user configuration file
    defaults
    logfile “C:\xampp\sendmail\sendmail.log”

    account Gmail
    tls on
    tls_certcheck off
    host smtp.gmail.com
    from jayshreekrishnan@gmail.com
    auth on
    user jayshreekrishnan@gmail.com
    password ***
    account default : Gmail

    php.ini
    —————————–
    [mail function]
    ; For Win32 only.
    ; http://php.net/smtp
    SMTP = smtp.gmail.com
    ; http://php.net/smtp-port
    smtp_port = 25

    ; For Win32 only.
    ; http://php.net/sendmail-from
    sendmail_from = jayshreekrishnan@gmail.com

    ; For Unix only. You may supply arguments as well (default: “sendmail -t -i”).
    ; http://php.net/sendmail-path
    sendmail_path = “C:\xampp\sendmail\sendmail.exe\ -t”

    Kindly help
    Thanks
    Jayshree

    • Hey Jayshree….there could be an issue with your port connection….you need to check your log files to see the error message/s therein to find a clue to your problem…

    • Ruban V
    • June 5th, 2012

    hi pallavi,

    • Ruban V
    • June 5th, 2012

    i dont have C:\xampp\sendmail\sendmail.log file then how can i edit and send the email. please help me the needful..

    • Hi Ruban….the sendmail.ini file in sendmail folder contains the name and path of the sendmail.log file….u need to check if it is commented and uncomment it if so, so that logs are maintained for tracking errors

    • priya
    • June 16th, 2012

    hi pallavi can u pls help me. i am creating a registration form with activation link . beginner in php . i am using XAMPP version 1.7.7
    i got successful mgs .but i didnt get any mail. could u pls help me.
    here my code,
    php.ini

    [mail function]
    ; 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 = rts.itteam@gmail.com

    ; For Unix only. You may supply arguments as well (default: “sendmail -t -i”).
    ; http://php.net/sendmail-path
    sendmail_path = “C:\xampplite\sendmail\sendmail.exe -t”

    sendmail.ini

    [sendmail]

    ; you must change mail.mydomain.com to your smtp server,
    ; or to IIS’s “pickup” directory. (generally C:\Inetpub\mailroot\Pickup)
    ; emails delivered via IIS’s pickup directory cause sendmail to
    ; run quicker, but you won’t get error messages back to the calling
    ; application.

    smtp_server=smtp.gmail.com

    ;smtp port (normally 25)

    smtp_port=465

    smtp_ssl=auto

    default_domain=gmail.com

    auth_username=rts.itteam@gmail.com
    auth_password=******

    register.php

    <?php
    require 'include/connect.php';
    session_start();
    if(isSet($_POST['submit']))
    {
    $err = array();

    if(strlen($_POST['username'])32)
    {
    $err[]=’* Your username must be between 3 and 32 characters!';
    }

    if(preg_match(‘/[^a-z0-9\-\_\.]+/i’,$_POST['username']))
    {
    $err[]=’* Your username contains invalid characters!';
    }

    if(!preg_match(“/^[\.A-z0-9_\-\+]+[@][A-z0-9_\-]+([.][A-z0-9_\-]+)+[A-z]{1,4}$/”,$_POST['email']))
    {
    $err[]=’ * Your email is not valid!';
    }

    if(!count($err))
    {
    $email = mysql_real_escape_string($_POST['email']);
    $username = mysql_real_escape_string($_POST['username']);
    $pass = substr(md5($_SERVER['REMOTE_ADDR'].microtime().rand(1,100000)),0,6);
    $insert = mysql_query(“INSERT INTO tut_users(usr,pass,email,ip,dt)
    VALUES(

    ‘”.$username.”‘,
    ‘”.md5($pass).”‘,
    ‘”.$email.”‘,
    ‘”.$_SERVER['REMOTE_ADDR'].”‘,
    NOW()

    )”);

    if($insert)
    {

    $from=”noreply@tutorialpot.com”;
    $to=$_POST['email'];
    $subject = “Tutorialpot | login form demo”;
    $headers = “From: “.$from.”\r\n”;
    $headers = “Reply-To: “.$from.”\r\n”;
    $headers = ‘Content-type: text/html; charset=iso-8859-1′ . “\r\n”;
    $headers .= “X-Mailer: PHP \r\n”;
    $msg =
    You or someone using your email ” .$email. ” signed up on yourwebsite.com
    Password: ” .$pass. ”
    “;
    @mail($email, $subject, $msg, $headers);
    //$from_add = “noreply@fnhmagazines.com.com”;

    //$to_add = “$email”; //<– put your yahoo/gmail email address here

    //$subject = "Test Subject";
    //$message = "Test Message";

    //$headers = "From: $from_add \r\n";
    //$headers .= "Reply-To: $from_add \r\n";
    //$headers .= "Return-Path: $from_add\r\n";

    //if(mail($to_add,$subject,$message,$headers))
    //{
    //$msg = "Mail sent OK";
    //}
    //else
    //{
    // $msg = "Error sending email!";
    //}

    $_SESSION['success']='Registration successfull Please check your inbox or spam!';
    }
    else $err[]='This username / email is already taken!';
    }

    if(count($err))
    {
    $_SESSION['err'] = implode('’,$err);
    }

    header(“Location: register.php”);
    exit;
    }
    ?>

    SUBSCRITION

    Subscription on fnhmagazines.com account!

    Already a member? Login here!
    <?php

    if(isset($_SESSION['err']))
    {
    echo '’.$_SESSION['err'].”;
    unset($_SESSION['err']);
    }

    if(isset($_SESSION['success']))
    {
    echo ”.$_SESSION['success'].”;
    unset($_SESSION['success']);
    }
    ?>

    Username

    Email

    A password will be emailed to you

     

    apache error.log

    [Sat Jun 16 17:51:41 2012] [notice] Parent: Received shutdown signal — Shutting down the server.
    [Sat Jun 16 17:51:41 2012] [notice] Child 2408: Exit event signaled. Child process is ending.
    [Sat Jun 16 17:51:42 2012] [notice] Child 2408: Released the start mutex
    [Sat Jun 16 17:51:43 2012] [notice] Child 2408: All worker threads have exited.
    [Sat Jun 16 17:51:43 2012] [notice] Child 2408: Child process is exiting
    [Sat Jun 16 17:51:45 2012] [notice] Parent: Child process exited successfully.
    [Sat Jun 16 17:52:22 2012] [notice] Digest: generating secret for digest authentication …
    [Sat Jun 16 17:52:22 2012] [notice] Digest: done
    [Sat Jun 16 17:52:26 2012] [notice] Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1 configured — resuming normal operations
    [Sat Jun 16 17:52:26 2012] [notice] Server built: Sep 10 2011 11:34:11
    [Sat Jun 16 17:52:26 2012] [notice] Parent: Created child process 1600
    [Sat Jun 16 17:52:28 2012] [notice] Digest: generating secret for digest authentication …
    [Sat Jun 16 17:52:28 2012] [notice] Digest: done
    [Sat Jun 16 17:52:30 2012] [notice] Child 1600: Child process is running
    [Sat Jun 16 17:52:30 2012] [notice] Child 1600: Acquired the start mutex.
    [Sat Jun 16 17:52:30 2012] [notice] Child 1600: Starting 150 worker threads.
    [Sat Jun 16 17:52:30 2012] [notice] Child 1600: Starting thread to listen on port 80.
    [Sat Jun 16 17:52:30 2012] [notice] Child 1600: Starting thread to listen on port 443.
    The filename, directory name, or volume label syntax is incorrect.

    need your help

    • Hi Priya you need to check for error message in sendmail.log file in the sendmail folder…this will give you the specific error message related to sending the mail…..

        • priya
        • June 18th, 2012

        Hi pallavi, thanx for ur reply.. but is no sendmail.log file in the sendmail folder

    • Priya your sendmail.ini file will contain the filename and path of the logfile…you need to uncomment it (if it is commented) to enable logging sendmail errors/messages.

        • priya
        • June 21st, 2012

        hi pallavi, i did as what you said above but still there is no error log file.

        ; configuration for fake sendmail

        ; if this file doesn’t exist, sendmail.exe will look for the settings in
        ; the registry, under HKLM\Software\Sendmail

        [sendmail]

        ; you must change mail.mydomain.com to your smtp server,
        ; or to IIS’s “pickup” directory. (generally C:\Inetpub\mailroot\Pickup)
        ; emails delivered via IIS’s pickup directory cause sendmail to
        ; run quicker, but you won’t get error messages back to the calling
        ; application.

        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 = alway use SSL
        ; tls = always use TLS
        ; none = never try to use SSL

        smtp_ssl=auto

        ; the default domain for this server will be read from the registry
        ; this will be appended to email addresses when one isn’t provided
        ; if you want to override the value in the registry, uncomment and modify

        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=rts.itteam@gmail.com
        auth_password=*******

        ; if your smtp server uses pop3 before smtp authentication, modify the
        ; following three lines

        ;pop3_server=
        ;pop3_username=
        ;pop3_password=

        ; to force the sender to always be the following email address, uncomment and
        ; populate with a valid email address. this will only affect the “MAIL FROM”
        ; command, it won’t modify the “From: ” header of the message content

        ;force_sender=
        ; 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=localhost

      • Priya….what you have pasted here is from php.ini file….i’m talking about the sendmail.ini file in the sendmail folder….there should be a line like this in sendmail.ini file

        defaults
        logfile “C:\xampplite\sendmail\sendmail.log”

        this will log sendmail errors/messages! if its not present then you will need to add it and then restart the server and execute your program…

    • dhiwan
    • July 17th, 2012

    hi pallavi..
    i did al dis above config in php.ini & sendmail.ini
    it shows mail sent …but not yet received..

    im using xampp 1.7.4

    by default the sendmail,ini differs the above all

    ; configuration for fake sendmail

    ; if this file doesn’t exist, sendmail.exe will look for the settings in
    ; the registry, under HKLM\Software\Sendmail

    [sendmail]

    ; you must change mail.mydomain.com to your smtp server,
    ; or to IIS’s “pickup” directory. (generally C:\Inetpub\mailroot\Pickup)
    ; emails delivered via IIS’s pickup directory cause sendmail to
    ; run quicker, but you won’t get error messages back to the calling
    ; application.

    smtp_server=localhost

    ; smtp port (normally 25)

    smtp_port=25

    ; the default domain for this server will be read from the registry
    ; this will be appended to email addresses when one isn’t provided
    ; if you want to override the value in the registry, uncomment and modify

    ;default_domain=local

    ; 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=
    ;auth_password=

    ; if your smtp server uses pop3 before smtp authentication, modify the
    ; following three lines

    ;pop3_server=
    ;pop3_username=
    ;pop3_password=

    ; to force the sender to always be the following email address, uncomment and
    ; populate with a valid email address. this will only affect the “MAIL FROM”
    ; command, it won’t modify the “From: ” header of the message content

    ;force_sender=me@localhost

    ; 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=localhost

    i did like above in sendmail.ini…nt at all receives…

    i did like dis..

    [sendmail]

    # Example for a user configuration file defaults
    account Gmail
    tls on
    tls_certcheck off
    host smtp.gmail.com
    from *****@gmail.com
    auth on
    user ******@gmail.com
    password ********

    account default : Gmail

    help me to solve dis prblm…

      • dhiwan
      • July 17th, 2012

      dis error shows for me….

      12-07-17 15:15:53 : Must issue a STARTTLS command first. pe8sm13725667pbc.76
      12-07-17 15:17:50 : Must issue a STARTTLS command first. nh8sm13732783pbc.60

        • hidayah
        • July 27th, 2012

        i got this error so can u help me..please…as soon as possible.this is for my project where i need to present next week..please send to my email if any solution n_dayah01@yahoo.com thanks you

        Warning: mail() [function.mail]: SMTP server response: 530 5.7.0 Must issue a STARTTLS command first. kh1sm2245836pbc.23 in C:\xampplite\htdocs\psm\1.php on line 14
        Failure

    • Vicky
    • September 10th, 2012

    Can anyone help me??
    As said here I modified both php.ini and sendmail files. But still i cant send mail..
    It is saying like follows..

    Warning: mail() [function.mail]: SMTP server response: 553 sorry, relaying denied from your location [117.215.209.103] (#5.7.1) in C:\xampp\htdocs\vicky\vmail.php on line 5
    Mail not sent!

    • Liberty Reserve in Antigua and Barbuda
    • September 13th, 2012

    This piece of writing provides clear idea for the new viewers of blogging, that really how to do blogging.

    • elephant Tube
    • October 19th, 2012

    Very soon this website will be famous amid all blogging and site-building people, due to it’s good articles

    • J
    • October 25th, 2012

    my sendmail is different :-

    ; configuration for fake sendmail

    ; if this file doesn’t exist, sendmail.exe will look for the settings in
    ; the registry, under HKLM\Software\Sendmail

    [sendmail]

    ; you must change mail.mydomain.com to your smtp server,
    ; or to IIS’s “pickup” directory. (generally C:\Inetpub\mailroot\Pickup)
    ; emails delivered via IIS’s pickup directory cause sendmail to
    ; run quicker, but you won’t get error messages back to the calling
    ; application.

    smtp_server=mail.mydomain.com

    ; smtp port (normally 25)

    smtp_port=25

    ; 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=auto

    ; the default domain for this server will be read from the registry
    ; this will be appended to email addresses when one isn’t provided
    ; if you want to override the value in the registry, uncomment and modify

    ;default_domain=mydomain.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=
    auth_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
    ; the “From: ” header of the message content

    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=

    • Jon
    • November 12th, 2012

    [Mon Nov 12 13:53:57 2012] [notice] Child 3624: Child process is running
    [Mon Nov 12 13:53:57 2012] [notice] Child 3624: Acquired the start mutex.
    [Mon Nov 12 13:53:57 2012] [notice] Child 3624: Starting 150 worker threads.
    [Mon Nov 12 13:53:57 2012] [notice] Child 3624: Starting thread to listen on port 443.
    [Mon Nov 12 13:53:57 2012] [notice] Child 3624: Starting thread to listen on port 80.
    [Mon Nov 12 13:53:57 2012] [notice] Child 3624: Starting thread to listen on port 443.
    [Mon Nov 12 13:53:57 2012] [notice] Child 3624: Starting thread to listen on port 80.
    ‘C:\sendmail\sendmail.exe\’ is not recognized as an internal or external command,
    operable program or batch file.

    The Message is successful but no email send to me

    • Nate
    • February 9th, 2013

    I did it too! I’ve been trying to figure this out for a day already. Thank you so much!

  16. Fantastic post however , I was wanting to know if you could write
    a litte more on this topic? I’d be very grateful if you could elaborate a little bit more. Appreciate it!

  17. Hi, I do believe this is an excellent web site. I
    stumbledupon it ;) I will revisit yet again since i have book-marked it.

    Money and freedom is the best way to change, may you be rich and
    continue to guide others.

  18. Plz solve this problem and send me replay

    Warning: mail() [function.mail]: “sendmail_from” not set in php.ini or custom “From:” header missing in D:\xampp\htdocs\adminssion\admsn – Copy\insert_enquiry.php on line 34

    Warning: mail() [function.mail]: “sendmail_from” not set in php.ini or custom “From:” header missing in D:\xampp\htdocs\adminssion\admsn – Copy\insert_enquiry.php on line 35

    Warning: mail() [function.mail]: “sendmail_from” not set in php.ini or custom “From:” header missing in D:\xampp\htdocs\adminssion\admsn – Copy\insert_enquiry.php on line 36

    • Alieym Wahab
    • April 25th, 2013

    I’m new to xampp..

    I want to ask; where we should put this code;

    # Mercury
    #account Mercury
    #host localhost
    #from postmaster@localhost
    #auth off

    # A freemail service example
    #account Hotmail
    #tls on
    #tls_certcheck off
    #host smtp.live.com
    #from [exampleuser]@hotmail.com
    #auth on
    #user [exampleuser]@hotmail.com
    #password [examplepassword]

    account Gmail
    tls on
    tls_certcheck off
    host smtp.gmail.com
    from [your_gmail_username]@gmail.com
    auth on
    user [your_gmail_username]@gmail.com
    password [your_gmail_password]

    account default : Gmail

  19. If you would like to take a great deal from this paragraph then you have
    to apply these strategies to your won webpage.

  20. I do not have these on my sendmail.ini

    # Mercury
    #account Mercury
    #host localhost
    #from postmaster@localhost
    #auth off

    # A freemail service example
    #account Hotmail
    #tls on
    #tls_certcheck off
    #host smtp.live.com
    #from [exampleuser]@hotmail.com
    #auth on
    #user [exampleuser]@hotmail.com
    #password [examplepassword]

    • whatsapp for pc
    • June 30th, 2013

    It’s actually a nice and helpful piece of info. I’m happy that you simply shared
    this useful info with us. Please keep us up to date like this.
    Thank you for sharing.

  21. My brother recommended I would possibly like this blog.
    He was once entirely right. This put up actually
    made my day. You cann’t imagine just how so much time I had spent for this information! Thanks!

  22. I’m not that much of a online reader to be honest but
    your blogs really nice, keep it up! I’ll go ahead and bookmark your site to come back in the future. Many thanks

    • check over here
    • August 4th, 2013

    Hello my family member! I want to say that this post is amazing, great written and come with approximately all vital infos.
    I would like to see extra posts like this .

  23. If some one wishes to be updated with most up-to-date technologies afterward he must be
    visit this website and be up to date all the time.

    • tapaswini mishra
    • August 15th, 2013

    in my system not working the mail() function.i saw your post and change my php.ini file and sendmail.ini file but a warning message is occurred that message is mail() [function.mail]: SMTP server response: 530 5.7.0 Must issue a STARTTLS command first. wr9sm2172546pbc.7 – gsmtp .plz help me give me a solution……

  24. It’s very simple to find out any topic on net as compared to textbooks, as I found this piece of writing at this site.

  25. Because the admin of this site is working, no
    uncertainty very rapidly it will be famous, due to its quality contents.

    • puran
    • October 20th, 2013

    hey ,
    could you please help me fix this issue.
    i tried configuring the php and mailsender files
    no help

    When i change the port number it just loads until it times out and nothing happens
    the port number 587 for gmail account gives this error. and 465 doesnt work.

    Warning: mail() [function.mail]: SMTP server response: 530 5.7.0 Must issue a STARTTLS command first. p5sm10877585igj.10 – gsmtp in C:\xampp\htdocs\php\register.php on line 54

  26. I have read so many content regarding the blogger lovers except this piece of writing is really a good paragraph, keep it
    up.

    • An
    • August 11th, 2014

    Shrinkage – The issue of penile shrinkage related to marijuana use is debatable.
    The market still remains largely underpenetrated and offer huge growth
    potential. For most of us, taking a bath is just a regular
    daily activity that we do in order to keep our bodies clean and hygienic.

  27. If you wish for to take a great deal from this paragraph then you have to apply these techniques to your won weblog.

  28. If some one wishes expert view on the topic of blogging then i propose him/her
    to pay a quick visit this webpage, Keep up the fastidious job.

  29. Fastidious respond in return of this issue with genuine
    arguments and telling everything on the topic of that.

  30. Pretty! This has been an incredibly wonderful article.
    Thank you for providing this information.

  31. I will right away grab your rss feed as I
    can’t find your email subscription hyperlink or newsletter service.
    Do you have any? Please permit me realize
    so that I could subscribe. Thanks.

  32. I have learn some good stuff here. Certainly value bookmarking for revisiting.
    I wonder how a lot attempt you place to create one of these magnificent informative web site.

  33. Hello there! I know this is kinda off topic nevertheless I’d figured I’d ask.
    Would you be interested in exchanging links or maybe guest writing a blog post or vice-versa?
    My blog discusses a lot of the same subjects as yours and I believe we could greatly benefit from each other.
    If you might be interested feel free to shoot me an email.

    I look forward to hearing from you! Great blog by the
    way!

  34. My brother suggested I might like this website.
    He was totally right. This post truly made my day.
    You can not imagine just how much time I had spent for this info!

    Thanks!

  35. If some one needs to be updated with newest technologies after that he
    must be pay a visit this website and be up
    to date everyday.

  36. I think this is one of the most significant information for me.

    And i am glad reading your article. But should remark on few general things, The web site style is great,
    the articles is really great : D. Good job, cheers

  37. great issues altogether, you just received
    a emblem new reader. What may you recommend in regards to
    your post that you just made a few days in the past? Any positive?

  38. I read this piece of writing completely concerning the difference of newest and earlier technologies, it’s amazing article.

  39. I know this site offers quality based posts and other
    data, is there any other web page which presents
    such stuff in quality?

  40. Hmm is anyone else encountering problems with the images on this blog loading?

    I’m trying to determine if its a problem on my end or if it’s the blog.

    Any responses would be greatly appreciated.

  41. This site was… how do you say it? Relevant!! Finally I
    have found something that helped me. Cheers!

  42. My spouse and I stumbled over here by a different website and thought I might as well check things
    out. I like what I see so i am just following you. Look forward to exploring your web page for a second time.

  43. Do you mind if I quote a few of your posts as long
    as I provide credit and sources back to your website?
    My blog is in the exact same niche as yours and my
    users would certainly benefit from a lot of the information you
    present here. Please let me know if this okay with you. Appreciate it!

  44. Greetings from Idaho! I’m bored to death at work so I decided to check
    out your blog on my iphone during lunch break. I really
    like the info you provide here and can’t wait to
    take a look when I get home. I’m shocked at how quick your blog
    loaded on my phone .. I’m not even using WIFI,
    just 3G .. Anyhow, great blog!

  45. I’d like to thank you for the efforts you have put in writing this blog.
    I really hope to see the same high-grade blog posts from you later on as well.
    In fact, your creative writing abilities has inspired me to get my own blog now ;
    )

  46. After looking at a handful of the blog articles on your blog,
    I truly like your technique of blogging. I book marked it to
    my bookmark webpage list and will be checking back soon. Please check out my
    website as well and let me know how you feel.

  47. Hello, i feel that i saw you visited my weblog so i came to return the prefer?.I’m trying to to
    find things to improve my site!I assume its adequate to make use of some of your concepts!!

  48. Everyone loves what you guys are usually up too. Such clever work and reporting!

    Keep up the terrific works guys I’ve incorporated you guys to my personal blogroll.

  49. You can certainly see your enthusiasm within the work you
    write. The arena hopes for even more passionate writers such as you
    who aren’t afraid to mention how they believe. Always go
    after your heart.

  50. What’s up to every one, it’s actually a nice for me
    to visit this web site, it includes useful Information.

  51. Just desire to say your article is as astonishing.

    The clearness in your post is simply nice and
    that i can assume you’re knowledgeable on this subject.
    Well along with your permission let me to clutch your RSS
    feed to stay updated with coming near near post.
    Thank you one million and please continue the rewarding work.

  52. I am truly thankful to the holder of this web site who
    has shared this great paragraph at at this time.

  53. I am forget my password & I want to know my single use code if any

  54. An outstanding share! I have just forwarded this onto a colleague who was doing a little homework on this.
    And he actually bought me dinner simply because I stumbled upon it for him…
    lol. So let me reword this…. Thank YOU for the meal!!

    But yeah, thanx for spending time to discuss this matter here
    on your website.

  55. hi!,I love your writing so so much! proportion we be in contact more about
    your post on AOL? I require an expert in this area to unravel my problem.
    May be that is you! Having a look forward to peer you.

  56. This paragraph presents clear idea for the new people of blogging,
    that really how to do running a blog.

  57. Hi there everyone, it’s my first go to see at
    this site, and article is in fact fruitful in favor of me,
    keep up posting these posts.

  1. July 6th, 2010

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: