Define send mail method more flexable