fix sending of email