add mail send functionality