#XAMPP #PHP #Gmail
How to send mail using Localhost by xampp server and php mail function.
Don't forget to turn Apache and MySQL on XAMPP server
First from XAMPP folder, open htdocs folder.
Next create a file with ".php" extension. Give any name you want. After this, follow the procedure below.
Procedure:
1. Download and install XAMPP( Install it at my C drive)
2. Then in XAMPP folder, go to 'php' folder and open php.ini( configuration file), New xampp update says 'php.ini-development'
3. Then at line no. 1077 change "SMTP= localhost" to "SMTP= smtp.gmail.com"
4.Next at line no. 1079 change "smtp_port= 25" to "smtp_port= 587"
5. Next at line no. 1083 uncomment(remove ; from the start of line) and in
sentmail_from= , just write your own gmail(example- sentmail_from = [email protected])
6.Next at line no. 1087 write sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t
7. Now in Xampp folder, open Sentmail folder and then open sentmail.ini(configuration setting file)
8. Now in sentmail.ini, in line no.14, write "smtp_server=smtp.gmail.com"
9. Next in line no.18 change to smtp_port =587.
10. Now in line no.26 change to smtp_ssl=tls
11. Now uncomment line no.42
12. Now in line no. 46, write your own gmail and in line no. 47, write password of your mail
13. Now in line no. 60, write your own gmail (This is optional. If not working, try this).
14. Now in line no.71, type hostname= localhost(This is also optional. If not working, write this. If it is working, leave it as it is.
15. Watch from 7:22, and donot skip if you want to make it work.
0:00 Start
1:46 XAMPP video link • How to install XAMPP server in 2021
Watch video How to send mails using PHP mail function and localhost | 100% working online without registration, duration hours minute second in high quality. This video was added by user Your Program Tutor 06 May 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 3,81 once and liked it 6 people.