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 Introducing Dependency Management and Composer

Philip Schultz
Philip Schultz
11,437 Points

Does this assignment work locally?

I'm having some difficulty getting this project to work locally on my XAMMP server. Is this intended to just use workspaces? Do I need some kind of email service for this work locally?

jamesjones21
jamesjones21
9,260 Points

What are the issues / errors showing? Also: Do you have composer installed on your computer?

2 Answers

Hey Phillip, one common reason for using PHPMailer is to avoid having to send email from a local testing environment. However you need to look at mamp/xampp's docs and make sure your local mail server is working, and read the SMTP section in the PHP docs as it suggests.

If you need a local mailserver that doesn't go anywhere, MailHog is great for that: https://github.com/mailhog/MailHog