ics file not recognized by outlook

前端 未结 2 1821
自闭症患者
自闭症患者 2021-01-23 16:46

I have some problems. I\'m trying to send an ics file, so an outlook user can add the event in his calendar. In some versions, like 2010, it works well (home edition) but on som

2条回答
  •  终归单人心
    2021-01-23 17:32

    Be sure you added this header :

    Content-Type: multipart/alternative;

    And then for the ics file part :

    Content-Type: text/calendar; charset="utf-8"; name="testcal.ics" method=REQUEST'."\r\n";
    Content-Disposition: inline; filename="testcal.ics"'."\r\n";
    

    NB : \r\n MUST be between double quotes

提交回复
热议问题