Ad Code

Responsive Advertisement

Ticker

6/recent/ticker-posts

How to Send Mail From Localhost Using XAMPP Server With Source Code

 Hey guy's just follow this steps


First turn on from your gmail >>

>> Security

>> Less secure app access pane


Then 2nd Step


C:\xampp\php and open the php.ini file.

Find [mail function] 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"



Then 3rd Step


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

debug_logfile=debug.log

auth_username=YourGmailId@gmail.com

auth_password=Your-Gmail-Password

force_sender=YourGmailId@gmail.com(optional)

PHP Source Code--->

Post a Comment

0 Comments

Ad Code

Responsive Advertisement