Added mail send functionality for invitation.
Fixed a bug with uninviting