Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-85366

Outlook users receive .ics file instead of the proper invitation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.5.5, 5.0
    • Email
    • MOODLE_405_STABLE, MOODLE_500_STABLE

      Creating a Moodle tracker from WP-5349.

      In Gmail, email renders an invitation section that shows event information:

      While in Outlook, only the attached .ics file is shown:

      PHPMailer allows this, but we are not properly attaching the .ics file to execute this: https://github.com/moodle/moodle/blob/15b534da3ede9c3966f994e965ecac7361a21b7f/lib/phpmailer/src/PHPMailer.php#L3014-L3029

      This may be resolved by adding the following code to https://github.com/moodle/moodle/blob/15b534da3ede9c3966f994e965ecac7361a21b7f/lib/moodlelib.php#L5577 :

      if ($mimetype == 'text/calendar') {
           $icalcontent = file_get_contents($attachment);
           $mail->Ical = $icalcontent;
      }
      

      This GitHub issue: https://github.com/PHPMailer/PHPMailer/issues/175
      Stackoverflow: https://stackoverflow.com/a/66151376

        1. screenshot-1.png
          96 kB
          Misha Golenkov
        2. screenshot-2.png
          83 kB
          Misha Golenkov

            Unassigned Unassigned
            mikhailgolenkov Misha Golenkov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.