Add X-PHP-Originating-Script: that will include uid of the script followed by the filename the 5th parameter to mail(), even in safe mode. These parameters will always replace the value of Force the addition of the specified parameters to be passed as extra parameters Sendmail_path = “\”C:/Documents and Settings/avlab/My Documents/Noa/AVL-Website/XAMPPLite/xampplite/sendmail/sendmail.exe\” -t” You may supply arguments as well (default: “sendmail -t -i”). I have tried doing what you said and changed all the relevant parts of sendmail.ini and php.iniĪnd in php.ini: I changed the mail function section as follows: Sendmail_path = “C:\xampp\sendmail\sendmail.exe\ -t” Jul 02 09:03:19 host= tls=on auth=on errormsg=’cannot connect to, port 25: Unknown error’ exitcode=EX_TEMPFAIL 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. # Set default values for all following accounts. Sendmail_path = “\”C:\xampp\sendmail\sendmail.exe\” -t”Ģ) 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: Please feel free to comment if this blog was useful to you.ġ) in php.ini i added this line, removing thi initial comment made by a ‘ ’: Hope this blog helps you in case you have encountered a similar problem as I did.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.$body=”This is my demo email sent using PHP on XAMPP Lite version 1.7.3″ I have written a sample program below to check if mail is being sent.We need to restart the Apache Server to reflect the changes in php.ini file. Now the required configuration changes have been done.Set the default account to Gmail as shown below: In my example I have configured the Gmail account as shown below:ģ. Add the account through which you want to send your mails. Comment the “Mercury” and “A free mail service example” contents as shown below:Ģ.The file path is “C:\xampplite\sendmail” (if your XAMPP Lite folder is in C drive). 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) Search for sendmail_path in your php.ini file and remove the semi colon before it. The file path is “C:\xampplite\php” (if your XAMPP Lite folder is in C drive). 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 □ I have been unsuccessfully trying to send an email in PHP on XAMPP Lite version 1.7.3 on Windows since yesterday.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |