the email was not being sent when a user sends an invite to their friend. I fixed that with this commit.