5 Configure sendmail on xampp! Use any email account to send mail from Xampp!

Опубликовано: 30 Март 2026
на канале: Dev Ansab
74,862
847

ATTENTION! UPDATED VIDEO
If anyone is having problem in sending mail then you can try changing the SMTP port to 465.
The fix of not getting email is here    • FIX! Xampp not sending E-mail. Use gmail s...  
Watch this video if you can't successfully send email.



Hi, guys in this video you will see how you can send emails from xampp. You can use any email account to send mail from xampp. Watch this video until the end.

CODE:
------------------------------------------------
php.ini file

SMTP=smtp.gmail.com
smtp_port=587
sendmail_from = [email protected]
sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"
-----------------------------------------------------
sendmail.ini file

smtp_server=smtp.gmail.com
smtp_port=587
error_logfile=error.log
debug_logfile=debug.log
[email protected]
auth_password=yourpassword
[email protected]
-----------------------------------------------------
PHP file code

"angle bracket open"?php
//the subject
$sub = "Your subject";
//the message
$msg = "Your message";
//recipient email here
$rec = "[email protected]";
//send email
mail($rec,$sub,$msg);
?"angle bracket open"
----------------------------------------------------------------------------


I am also available on :
Facebook:   / devansab9  
Quora: https://www.quora.com/profile/Dev-Ansab
Twitter:   / devansab9