Also, if `mail.send_invite(user)` fails then the new user is still added to the group anyway. This isn't great, unless there is a way to resend the invite for the pending user, but maybe this can be addressed in a later pull request.