add function of sending mail