added mail send functionality