implemented send invite feature (the mail template is left in this first iteration)