Send mail from Xampp

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Send mail from Xampp

Postby Bosnjanac » 09. December 2015 22:55

Hi all,

I have Xampp on Windows Server 2012. I can`t send mail from php on address. I use corporate address and gmail account and there is no send mail.

I google it and find this tip:

in php.ini file find [mail function] and change
sendmail_from =
sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"
Now Open C:\xampp\sendmail\sendmail.ini. Replace all the existing code in sendmail.ini with following code

Now you have done!! create php file with mail function and send mail from localhost.

I change everything and nothing. Simple no mail.

php.ini and sendmail.ini file you can find on

I just erase my mail and password.

Can you help me. Is there some new setting that I need to change.
Posts: 4
Joined: 10. June 2015 11:27
Operating System: Windows Server 2012

Re: Send mail from Xampp

Postby WilliL » 11. December 2015 21:32

configuration looks fine. (port I'm not sure)

Maybe there is a typemismatch in "" or "auth_password=my-gmail-password".
Have a look to "error.log"

in my config php.ini there is only sendmail_path defined.
Bosnjanac wrote:php.ini [mail function]
;sendmail_from =
sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"
Posts: 662
Joined: 08. January 2010 10:54
Operating System: Win7Home Prem 64 SP1

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 56 guests