Thanks for sharing this awesome work, I love it! I'm trying to use the PHPMailer function to send out activation emails through gmail account:
const EMAIL_HOST = 'smtp.gmail.com';
const SMTP_PORT = '587';
I've already enabled less secure apps and IMAP access in Gmail settings, but it throws this fatal error right after registration:
2021/02/23 22:55:53 [error] 36592#36592: *721 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Class 'PHPMailer\PHPMailer\Exception' not found in /var/www/html/test/PHPMailer/PHPMailer.php:2035
Stack trace:
#0 /var/www/html/test/PHPMailer/PHPMailer.php(1855): PHPMailer\PHPMailer\PHPMailer->smtpConnect()
#1 /var/www/html/test/PHPMailer/PHPMailer.php(1598): PHPMailer\PHPMailer\PHPMailer->smtpSend()
#2 /var/www/html/test/PHPMailer/PHPMailer.php(1434): PHPMailer\PHPMailer\PHPMailer->postSend()
#3 /var/www/html/test/class.php(182): PHPMailer\PHPMailer\PHPMailer->send()
#4 /var/www/html/test/class.php(95): doRegisterAttempt->sendVerifyEmail()
#5 /var/www/html/test/register/register_handle.php(12): doRegisterAttempt->attemptRegister()
#6 {main}
thrown in /var/www/html/test/PHPMailer/PHPMailer.php on line 2035" while reading response header from upstream, client: 162.158.92.122, server: *******, request: "POST /test/register/register_handle.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "*******", referrer: "https://*******/test/register/"
I'm not sure how to resolve the Exception issue. Should I use compose for PHPMailer?
Thanks in advance