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

PHP Mailer Function Updated

Randy gives an awesome 'sending email with PHP' lesson, however as time passed, the library we used to use is no longer as it was and same as it's usage.

Please double check PHPMailer's example before using it, and recommend teachers warn it under the video.

1 Answer

+1 on this, the lessons are out of date with what's available in the PHPMailer Github files. That said I'm sure I learnt more by having to teach myself.

I got stuck for ages getting mine working, even after following every step of the documentation. As it turns out I'd being trying to require a file called phpmailerautoload.php in my code - I didn't realise that requires were case sensitive, and the file is actually named PHPMailerAutoload.php (with the caps)! Won't be making that mistake again in a hurry.