fixed mailer: it wasn't updating status after email success due to bad asynchronous logic