Giter VIP home page Giter VIP logo

simple-php-user-register-and-login-class's People

Contributors

cp6 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

simple-php-user-register-and-login-class's Issues

Sending activation emails through GMail

Hi,

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.