Troubleshooting errors in email setup