Added mailing functionality to end of invite#create