-- update send email function