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

Help with Third Party Library phpmailer

I have been watching the PHP Development section and have been following along but typing my own code instead of using the code that is provided. I'm doing this to see if i truly understand what is happening and it has been going great so far but i have run into trouble on the Using a Third-Party Library video. I went to the exact link in the video and downloaded the phpmailer. When i tried to include it in to my website i noticed that it was javascript not php. I then went to the github for phpmailer and downloaded it. This one was actually php but it was a different version. It has similar but slightly different names for all the functions and methods and i cant find the right ones the work like the ones in the video (i have looked for hours lol and it doesnt have the specific thing i need on the github info page) I am currently looking for the ValidAddress(). I was wondering if anybody could point me to the version that is used in the video or is it just too outdated. It is 5.2 if i can remember right.

1 Answer

Hey, I figured my problem out. In the tutorial, you put the class.phpmailer.php in inc/phpmailer. Add the PHPMailerAutoload.php file to the same directory (inc/phpmailer)

Hope this work for you!