Linux serverNETWORK ADMINISTRATIONSsmtp server liux

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

*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 https://youtu.be/L5uCc8Hab-I
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 = mail@gmail.com
sendmail_path = “”C:xamppsendmailsendmail.exe” -t”
—————————————————–
sendmail.ini file

smtp_server=smtp.gmail.com
smtp_port=587
error_logfile=error.log
debug_logfile=debug.log
auth_username=mail@gmail.com
auth_password=yourpassword
force_sender=mail@gmail.com
—————————————————–
PHP file code

“angle bracket open”?php
//the subject
$sub = “Your subject”;
//the message
$msg = “Your message”;
//recipient email here
$rec = “example@gmail.com”;
//send email
mail($rec,$sub,$msg);
?”angle bracket open”
—————————————————————————-

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

source

by Dev Ansab

linux smtp server

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

Comments are closed.