Linux serverNETWORK ADMINISTRATIONSsmtp server liux

How to Configure XAMPP to Send Mail From Localhost? Send Mail From Localhost XAMPP Using Gmail

To configure XAMPP server to send mail from localhost we have to make changes to two files sendmail.ini and php.ini. Open the xampp folder. By the name of “sendmail.ini” is present in sendmail file and “php.ini” is present in php file in the xampp folder.

How to send Mail using PHP mail() : https://youtu.be/UDPIJkkWqQU

source

by Code With Yousaf

linux smtp server

14 thoughts on “How to Configure XAMPP to Send Mail From Localhost? Send Mail From Localhost XAMPP Using Gmail

  • i get an error that says: Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:xampphtdocscookiessend.php on line 33

    how do i fix this 🙁

  • Thanks mate you helped me much, it worked, but I had to disable secure login to allow a log in with just a password, I didn't find an option for app passwords

  • Amazing content! Helped me to integrate gmail into my contact page. It's the simple things that often go unexplained and I thank this creator for sharing this with us. 🙂

  • Thank you. Note: I had to replace this line
    sendmail_path = "d:xamppsendmailsendmail.exe -t"
    because previous was not working, the format is different, and in the next video I had to add the FROM on the structure form to be able to create the email

  • im using linux what should I change in php.ini?

Comments are closed.