Unable to ConfigureEmail in ERPNext

Even when giving the correct username and password it shows error “Invalid login or password”.