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 trialAnthony Meyer
2,472 PointsUsing Object and Validating Email errors with PHPMailer
I'm currently in the PHP track watching the video "Using Object and Validating Email. I've scoured my code and it works if I remove everything from this video, but when it's EXACTLY the same as it is in the video, it errors out.
These are the warning/error regurgitated by the browser and I can't figure them out.
Warning: require(vendor/phpmailer/src/PHPMailer.php): failed to open stream: No such file or directory in /home/treehouse/workspace/suggest.php on line 4
Fatal error: require(): Failed opening required 'vendor/phpmailer/src/PHPMailer.php' (include_path='.:/usr/share/pear:/usr/share/php') in /home/treehouse/workspace/suggest.php on line 4
Thanks in advance!
Teacher Russell
16,873 PointsHI bro, I just noticed you misspelled the details variable in the second conditional. As for php mailer, I've studied that course, asked for help dozens of times here, scoured the internet, and wasted a week. I have no idea how to get php mailer to work in real life. I have a client waiting on my first website, 3 weeks no. PHP mailer is the only part I can't get to work. Good luck if you actually have to use it. The web is filled with lost souls:)
Anthony Meyer
2,472 Points@Russeldavis Thanks for that dude! And thank you for the response!
I know we use PHP Mailer at work, but I have no idea how it's set up. My boss built our system from scratch over the past two years.
I've noticed that you're correct about that. No one seems to want to answer questions about PHP. Maybe I'm taking the wrong courses?? I know it's something I'm going to need to learn for work eventually, so I figured it was worth learning now so I could get started. Might have to change my mind on that one.
This MIGHT help with the mailer? https://www.youtube.com/watch?v=fcLXsxpk2dc
Best of luck! I appreciate the help!
1 Answer
Teacher Russell
16,873 PointsPHP might not be the most popular thing around now, but it's extremely important and useful. It might be that more people are focused on languages like Python right now. There are some moderators here who are extremely helpful as well as kind and patient, if they see you. Keep it up. PHP is fun, and I think if you master it, there'll always be a demand for you. Just a novice, semi-educated guess, of course. I'll check out the video, and hopefully it's not one of the one's I've already tried to learn from:) Thanks a lot!
Anthony Meyer
2,472 PointsAnthony Meyer
2,472 PointsThe following is my code:
//The pathway for the mailer is exactly as it shows in the video.