Skip to main content

Posts

Showing posts from March, 2021

How to send mail from XAMPP localhost

How To Send Mail In PHP From Localhost Using XAMPP Server (Image Source - Google Images) To send mail from localhost XAMPP using Gmail, configure XAMPP after installing it. Follow the steps below for the same. Steps to send mail from Localhost XAMPP using Gmail: Open the XAMPP installation directory. Go to C:\xampp\php and open the php.ini file. Find [ smtp ] by pressing ctrl + f. Search and pass the following values: SMTP=smtp.gmail.com smtp_port=587 sendmail_from = YourGmailId@gmail.com sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t" Now, go to C:\xampp\sendmail and open the sendmail.ini file. Find [ sendmail ] by pressing ctrl + f. Search and pass the following values: smtp_server=smtp.gmail.com smtp_port=587 or 25 //use any of them error_logfile=error.log     ( Remove if there is a semicolon ; ) debug_logfile=debug.log      (  Remove if there is a semicolon  ; ) auth_username=YourGmailId@gmail.com auth_password=Your-Gmail-Password force_s...