modified sending of email