update send email after work has finished