Added code to open message or email app for sending invites.