Setting Email ( SMTP) with XAMPP

Can someone give me detail instructions on how to setup email with XAMPP, I spent 4 hours trying to configure without success.

Thanks in advance
Invoiceplane:
current config:
SMTP HOST : smtp.gmail.com
PORT : 587
TLS
Authentication YES

C:\xampp\php\php.ini
[Mail_function]
SMTP=smtp.gmail.com
smtp_port=587
sendmail_from = my-gmail-id@gmail.com

C:\Xampp\sendmail\sendmail.ini
[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
sendmail_path = ““C:\xampp\sendmail\sendmail.exe” -t”