Send Email Using Xampp Local Server in PHP
Watch on Youtube :- https://youtu.be/nOYDOFU697g
- XAMPP >= 7.0
- PHP >= 7.1
- Off 2 step verification
- Allow less secure apps
- (1) Open Xampp Folder From Your Device & Go " ~\Xampp\sendmail\sendmail.ini ".
- (2) Now Open sendmail.ini file & do Following Changes :-
smtp_server=smtp.gmail.com
smtp_port=587
smtp_ssl=auto
auth_username=Your_Email_ID
auth_password=Email_ID_Password
- (3) Now Open " ~\xampp\php\php.ini " file & do Following Changes :-
sendmail_path = C:\xampp\sendmail\sendmail.exe
Comment = [mail function]
- (4) Last Restart Xampp Server.
(A) Home Page
(B) Email Status