How to fix the error: Enter a valid username or password

How to fix the error: Enter a valid username or password


This error indicates that the authentication details provided are incorrect.
Check the following:
1. The username entered is correct.
2. The password is valid.
3. If Multi-Factor Authentication (MFA) or two-step verification is enabled for your SMTP email account, use an app-specific password instead of your regular email password.