handle more SMTP errors, update TODOs, remove useless `handle_error` function