Your host may have disabled the mail() function


#1

i have intsalled wordpress in my localhost and i want to change my passsword but it is showing this error.

The email could not be sent. Possible reason: your host may have disabled the mail() function.

Can anyone suggest how to solve this issue?


#2

To change your password:

cd /var/www/domain.com/htdocs
wp user update username --user_pass=password

Of course you should replace username and password with actual values.

As soon as you have access to your WP again install an SMTP plugin and configure it.


#3

Ok Thank You soo Much.It work :slight_smile:


#4