I am trying to send emails using the php
mail(); function. I have installed msmtp to allow me to use a gmail account. However whenever I try to send test email using
msmtp then a destination email, the system freezed and I cannot write more commands.
This is the contents of
account gmail tls on tls_starttls on tls_certcheck off auth on logfile ~/.msmtp.log host smtp.gmail.com port 587 user ****@gmail.com from ****@gmail.com password ********** account default : gmail
Also when it does sometimes work, I get an error which says bad credentials even though the details are correct, access for less secure apps is on and there is no 2-step verification.