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

SMTP=smtp.gmail.com
smtp_port=587
sendmail_from = my-gmail-id@gmail.com
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

[sendmail]

smtp_server=smtp.gmail.com
smtp_port=587
error_logfile=error.log
debug_logfile=debug.log
auth_username=my-gmail-id@gmail.com
auth_password=my-gmail-password
force_sender=my-gmail-id@gmail.com
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 test.cmd.in.rs

I just erase my mail and password.

Can you help me. Is there some new setting that I need to change.
Bosnjanac
 
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 "auth_username=my-gmail-id@gmail.com" 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]
;SMTP=smtp.gmail.com
;smtp_port=587
;sendmail_from = my-gmail-id@gmail.com
sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"
Willi
WilliL
 
Posts: 660
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 135 guests