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

Using a Third party library

When I use the files provided in the tutorial (both the class.phpmailer.php and the contact.php) it shows me a server error when i submit the contact form.

Can anyone help ?

Thanks!

Can anyone help?

I suppose it depends on the error and what credentials you put in the file.

Thanks James! It just says server error, don't know how to discover more about this, and I don't really know what you mean when you talk about credentials. I'm sorry, im a very beginner..

I don't access the local server through localhost, as in the file, but through another URL, could it be for that reason it's not working ?

Thanks again!

Roxane

I don't really know what you mean when you talk about credentials.

Credentials are just a fancy term for login information, like username, password, hostname.

Thanks James!

1 Answer

Ok I got how to find the error. I used this in the terminal: tail /Applications/MAMP/logs/php_error.log

What was happening is that I needed to import the file phpmailAutoloader, which I hadn't done. Could be good to mention it in the tutorial btw.

Thanks James!

Tagging Randy Hoyt on this one