added code to send email to a user in the same tenant