general email send functionality