Sendmail did not work for me, so I used msmtp 1.6.2 w32 , and most of them just followed the instructions in DeveloperSide . Here is a brief description of the installation for posterity:
Enabled IMAP access under a Gmail account (one of the msmtp messages sends letters)
Enable access for less secure applications . Log in to your google account and go here
Modify php.ini , find and modify each parameter below to display the following:
; These are commented out by prefixing a semicolon ;SMTP = localhost ;smtp_port = 25 ; Set these paths to where you put your msmtp files. ; I used backslashes in php.ini and it works fine. ; The example in the devside guide uses forwardslashes. sendmail_path = "C:\wamp64\msmtp\msmtp.exe -d -CC:\wamp64\msmtp\msmtprc.ini -t --read-envelope-from" mail.log = "C:\wamp64\msmtp\maillog.txt"
Create and edit the msmtprc.ini file in the same directory as your msmtp.exe file, as follows, replacing it with your own letter and password:
# Default values for all accounts defaults tls_certcheck off # I used forward slashes here and it works. logfile C:/wamp64/msmtp/msmtplog.txt account Gmail host smtp.gmail.com port 587 auth on tls on from ReplaceWithYourEmail@gmail.com user ReplaceWithYourEmail@gmail.com password ReplaceWithYourPassword account default : gmail
iyrin Mar 28 '17 at 6:12 2017-03-28 06:12
source share