我正在尝试使用电子邮件地址记录在MySQL数据库中发送密码,并且显示以下消息:
PHPMailer\PHPMailer\Exception: SMTP Error: Could not authenticate. in C:\...\vendor\phpmailer\phpmailer\src\PHPMailer.php on line xxx
这是它在phpmailer中引用的行:
if ('en' !== $langcode) {
// Make sure language file path is readable
if (!static::isPermittedPath($lang_file) || !file_exists($lang_file)) {
$foundlang = false;
} else {
// Overwrite language-specific strings.
// This way we'll never have missing translation keys.
$foundlang = include $lang_file;
}
}