I am being troubled from the send mail function using phpmailer running at localhost.
I use XAMPP, phpmailer
The $mail->IsSMTP()
or $mail->IsSendmail()
is working well on the hosting, but not localhost.
I had tried many solution mentioned on the internet, such as enabled the OPENSSL (extension=php_openssl.dll)
For using $mail->IsSendmail() of phpmailer, it shown "Could not execute: /usr/sbin/sendmail".
For using $mail->IsSMTP() with well configured, all are setting correctly.
It shows
"SMTP Error: Could not authenticate.",
I had the info from its debugger, there is info "...SMTP -> ERROR: Password not accepted from server:..."
But those had no problem on the live hosting environment, just only not work at localhost.
Hope someone can give me some idea. Many Thanks.