implement e-mail send functionality