Mails and invitations working