📜  未能打开所需的 'PHPMailer\PHPMailer\PHPMailer' - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:49.393000             🧑  作者: Mango

代码示例1
require __DIR__.'/PHPMailer/src/Exception.php';
    require __DIR__.'/PHPMailer/src/PHPMailer.php';
    require __DIR__.'/PHPMailer/src/SMTP.php';

   # use "use" after include or require

    use PHPMailer\PHPMailer\PHPMailer;
    use PHPMailer\PHPMailer\Exception;
    use PHPMailer\PHPMailer\SMTP;