sending mail method