Send Email Through Localhost
- Download msmtp file from here. and past .exe file in "C:\Windows\System32"
- Copy code from this link and save it as "ThawtePremiumServerCA_b64.txt" in "C:\ProgramData".
- Copy given code and save it as "msmtprc.txt" in "C:\ProgramData".
- include your gmail information in the file
account gmailhost smtp.gmail.comauth onuser username@gmail.compassword yourpasswordtls ontls_starttls ontls_trust_file "C:\ProgramData\ThawtePremiumServerCA_b64.txt"port 587from username@gmail.commaildomain gmail.comaccount default : gmail- open php.ini file and chenge the sendmail_path to:
sendmail_path = 'msmtp -t'
Done...........
0 comments