added support for sending email invites