How to Send invites as calendar invite (ical) - For any module

Hi There,

We would like to implement the below functionality Upon creation/edition of any record in any of the module (name for example : PS)  : 

 a calendar invite sends to the Contact's primary email address. 

  1. Calendar Appointment Subject/Title = [Module's record name] Invite
  2. Start Date/Time = PS's Scheduled Start Date Time
  3. End Date/Time = PS's Scheduled End Date Time

Please suggest any way to implement the invite ical feature in sugarcrm.