implements option for sending email