Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialZijun Liao
13,409 PointsPHPMailer configuration
We are not using autoload.php and use PHPMailer.php and Exception.php instead. Can any tell me how I can find this information in the documentation, in case I need to add any other open source project in the future?
I notice that I need to use following statements in https://github.com/PHPMailer/PHPMailer ,but not sure why Alena only use part of them,
use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception;
require 'path/to/PHPMailer/src/Exception.php'; require 'path/to/PHPMailer/src/PHPMailer.php'; require 'path/to/PHPMailer/src/SMTP.php';
1 Answer
Dave StSomeWhere
19,870 PointsYou need to go though the instructions in the README.md just like you did with that like you posted. Alena did the course on a prior version so at the time the course was created all was fine and those individual modules that Alena used were all that was needed at that time. Now they are bundled differently (as you found out) - so, no need to be concerned with the exact steps Alena needed to do at the time.
Just part of the game, things are always changing/upgrading and you need to go through the documentation, like you did - well done.