SMTP错误:无法通过身份验证验证$ langcode

时间:2020-06-23 11:47:25

标签: php

我正在尝试使用电子邮件地址记录在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;
    }
}

0 个答案:

没有答案