Save mail to msg file using EWS API

后端 未结 8 2164

I\'m using Exchange Web Services Managed API 1.1 to connect to Exchange server 2010 and then find out new emails received. Now I want to save a copy of the .msg file to a fo

8条回答
  •  醉梦人生
    2020-11-28 10:20

    If eml format is an option and php is the language use base64_decode on the Mimencontent before save on file.

    If using https://github.com/Heartspring/Exchange-Web-Services-for-PHP or https://github.com/hatsuseno/Exchange-Web-Services-for-PHP need to add

     $newmessage->mc = $messageobj->MimeContent->_;
    

    on line 245 or 247.

提交回复
热议问题