UPDATE FUNCTION SEND_MAIL()