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 Build a Basic PHP Website (2018) Adding a Basic Form SMTP with Google

Not Using the Console to Check Email I'm working in my desktop, how do I do this if i'm not in the workspace? thanks

I would like to know how can I do the same you do for the email checking on the Workspace but in my computer locally, I am using MAMP. Thanks

4 Answers

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,858 Points

If you're on a Mac, you can launch Terminal and type in mail. Unless you have a local SMTP server set up, however, instead of getting the mail, you should receive an error message that the message could not be sent.

You still follow her instructions by hitting enter until you get to the end of the message (either your mail message if you have an SMTP server set up locally, or the error message) and then type delete to get rid of it and quit to exit.

:)

how about in lamp?

Aurelien Roux
Aurelien Roux
25,567 Points

as I am not using workspaces either, I tested it another way. In suggest.php, replace the recipient at line 33 with your own email address

$mail->setFrom($email, $name);
$mail->addAddress('your personal address@example.com', 'your name');     // Add a recipient

if everything is right, use the form again and you should receive an email directly in your inbox.

My code worked and I received it in the team tree house email, but I changed the add address to my email and I haven't received anything. Did you receive anything when you tested it?

Aurelien Roux
Aurelien Roux
25,567 Points

maribrummett Yes I received it in my mail client, but it was in the spam folder

I tried it as well and it did not work for me. Moreover, the mail command in my terminal says "no mail for 'you'"

Hey Aurelian, I have followed your suggestions.But it doesn't work.Please help me.

Carlos Rojas  "Yoru No Tori"
Carlos Rojas "Yoru No Tori"
6,530 Points

Hello there, I am not pretty sure in MAMP but the XAMP server do have a console, its right there in the XAMP panel menu, you can do the same stuff as in any other videos where you need to check information or install any framework like laravel, you should check maybe this https://teamtreehouse.com/library/windows-local-php-dev-environment , I hope this could help you, have a great code!,