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

WordPress Installing WordPress Locally Installing WordPress Locally Enable Email for WordPress on Your Computer

What to fill up?

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

It show three input boxes for Hostname, FTP username, FTP password while installing easy SMPT

3 Answers

Dave StSomeWhere
Dave StSomeWhere
19,870 Points

Add the following line to your wp-config.php to bypass ftp (otherwise if you're interested in using FTP there are other searches to setup your FTP credentials). Here's a link to one of the many discussions about define FS_METHOD and the codex is always worth checking out.

<?php
define('FS_METHOD', 'direct');
?>

Sir if I add that define then can i send emails from localhost

Dave StSomeWhere
Dave StSomeWhere
19,870 Points

That define will allow you to update wordpress and add plugins without using ftp.

Sending mail from your local wordpress instance is a separate issue. You mentioned SMPT you should probably check out their documentation. Here's a link I found doing a quick search, but I haven't tried it.

Thanks for you help sir.