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 trial

PHP Build a Simple PHP Application Wrapping Up The Project Using A Third-Party Library

Ben Attenborough
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Ben Attenborough
Front End Web Development Techdegree Graduate 32,769 Points

Build a simple PHP Application - Part 6, second video: Finding the test_mail_basic.php file in the PHPMailer archive

I cannot find a file called test_mail_basic.php in the PHPMailer archive. I presume this is because it has been renamed. Does anyone know which code I should be copying?

3 Answers

Luis Vazquez
Luis Vazquez
6,370 Points

You can use the mail.phps file as an example. You'll have to find certain pieces of code since the order of the code is different than in the video since he's using an older version phpMailer.

Here's the file: https://github.com/PHPMailer/PHPMailer/blob/master/examples/mail.phps

Travis Stewart
Travis Stewart
15,188 Points

In the git hub repository you can select version 5.2 and download it that way. Then the file looks the same. I tried following along with the new version and by the end of the project the mailer would not work. So I've had to backtrack to here and start over with the mailer using 5.2. Really wishing I had used git to version control this project.

Jay Solomon
Jay Solomon
2,630 Points

I found that if you watch through this video and the next video that it's actually easier to just type the little code that ends up left and in the project from the example than to track down versions or anything else. Just my preference and thanks for the other suggestions.