gpt4 book ai didi

python - 生成和发送 MS Outlook 任务

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:05:50 26 4
gpt4 key购买 nike

是否有可能创建(生成)一封电子邮件(没有任何 MS COM 对象等 - 例如在 *nix 平台上),MS Outlook 将其识别为任务?

最佳答案

从 *nix 平台 - 你真正拥有的唯一选择是 using EWS to communicate directly with Exchange或具有包装此 EWS 行为的中介服务 (Exchange Server 2007+)。如果您使用 older versions of Exchange you may have to consider WebDAV .

<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
<soap:Header>
<t:RequestServerVersion Version="Exchange2007_SP1"/>
<t:TimeZoneContext>
<t:TimeZoneDefinition Id="Eastern Standard Time"/>
</t:TimeZoneContext>
</soap:Header>
<soap:Body>
<CreateItem xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Items xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
<Task xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
<Subject>This is a recurring task that was created by using the autogenerated EWS proxies.</Subject>
<Body BodyType="Text">This task occurs every week.</Body>
<Recurrence>
<WeeklyRegeneration>
<Interval>1</Interval>
</WeeklyRegeneration>
<NoEndRecurrence>
<StartDate>2006-08-15</StartDate>
</NoEndRecurrence>
</Recurrence>
<StartDate>2006-08-15T14:24:51.3876635-07:00</StartDate>
</Task>
</Items>
</CreateItem>
</soap:Body>
</soap:Envelope>

关于python - 生成和发送 MS Outlook 任务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13721242/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com