To get the accept/tentative/decline buttons to work in phpmailer for outlook adjustments were necessary.
/application/libraries/external/class.phpmailer.php (changes based upon
https://github.com/PHPMailer/PHPMailer/issues/47 comments from reblutus)
/application/views/emails/iCal.php (I added this)
/application/libraries/notifications.php (multiple changes made here for the notification of appointment and deletion, I added some variables etc. )
/application/controllers/appointments.php (I had to modify elements of this as well, a minor problem persists, discussed below).
I have made changes to the following files to get the buttons to work. So it works now in outlook and will automatically add the file to the calendar. The problem is that it will not work with google calendar.
Google works by adding the following string for both the appointment notifications and the cancellations:
$mailer->AddStringAttachment($email_ics,'appointment.ics, '7bit','text/calendar; charset=utf-8');
But, with this the accept/tentative/decline buttons do not show up in Outlook. Frustrating. There must be a way to get both.
Also, all runs smoothly except on the back end, canceling appointments does not resolve correctly. I think I messed up on my code in appoingments.php at line 273 through 298 but I am not sure what is wrong there.
So, my quest continues to get the ics files to work in all environments.