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 trialAsad Kashmiry
219 PointsI want to check visitor's email on my Email Account but PHPmailer doesn't work
Hello There! I need help from you guys.I want to get Email on my Email account from visitors.But my codes have some errors.What's the wrong with my PHP script? I have two screenshots of my scripts.Here are the links https://postimg.org/image/ij56rqknr/ https://postimg.org/image/62zsdeiwd/
Please help me to find out the solution.
2 Answers
Andrew Dovganyuk
10,633 PointsHi Asad, I think in future videos Alena will show us how to fix it! But for now you can recive email from suggest form to a treehouse@lochalhost! So what you need to do for now is replace your gmail to treehouse@lochalhost, then in this video https://teamtreehouse.com/library/build-a-basic-php-website/adding-a-basic-form/using-the-console-to-check-email you'll see the instructions how to use the console to view forwarded emails!
Andrew Dovganyuk
10,633 PointsCan you provide the code I'll try to find the error!
Asad Kashmiry
219 PointsAsad Kashmiry
219 PointsThank you for your response! I replaced my gmail id to treehouse@lochalhost but it did not work. It displayed same error. Please help me.