获取有关交换邮箱的信息
Get infos about exchange mailbox
有没有办法检索可通过 EWS SOAP 请求或 MAPI 属性 标记发送的电子邮件的最大允许大小?
谢谢
这取决于您的 Exchange 版本
来自微软 blog:
maxReceivedMessageSize (WCF) – Identifies the maximum message size that is accepted by EWS. This maximum message size is 35,000,000 bytes, which translates to 25 MB of base64-encoded data.
Note: The values for this limit differ for an on-premise Exchange 2010 deployment. In the initial release version of Exchange 2010, the message size limit is 10 MB. In Exchange 2010 Service Pack 1 (SP1), the message size limit is 35 MB.
有一个 GetMailTips 操作 returns MaxMessageSize 元素
<t:MaxMessageSize xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">10485760</t:MaxMessageSize>
要求:
<?xml version="1.0" encoding="utf-8" ?>
<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="Exchange2010" />
</soap:Header>
<soap:Body>
<GetMailTips xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
<SendingAs>
<t:EmailAddress> user1@contoso.com </t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
</SendingAs>
<Recipients>
<t:Mailbox>
<t:EmailAddress> user2@contoso.com </t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
</t:Mailbox>
</Recipients>
<MailTipsRequested>All</MailTipsRequested>
</GetMailTips>
</soap:Body>
</soap:Envelope>
https://msdn.microsoft.com/en-us/library/office/dd877060(v=exchg.150).aspx
从 IMsgStore 对象中读取 PR_MAX_SUBMIT_MESSAGE_SIZE
属性 (0x666D0003
)。
有没有办法检索可通过 EWS SOAP 请求或 MAPI 属性 标记发送的电子邮件的最大允许大小?
谢谢
这取决于您的 Exchange 版本
来自微软 blog:
maxReceivedMessageSize (WCF) – Identifies the maximum message size that is accepted by EWS. This maximum message size is 35,000,000 bytes, which translates to 25 MB of base64-encoded data.
Note: The values for this limit differ for an on-premise Exchange 2010 deployment. In the initial release version of Exchange 2010, the message size limit is 10 MB. In Exchange 2010 Service Pack 1 (SP1), the message size limit is 35 MB.
有一个 GetMailTips 操作 returns MaxMessageSize 元素
<t:MaxMessageSize xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">10485760</t:MaxMessageSize>
要求:
<?xml version="1.0" encoding="utf-8" ?>
<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="Exchange2010" />
</soap:Header>
<soap:Body>
<GetMailTips xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
<SendingAs>
<t:EmailAddress> user1@contoso.com </t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
</SendingAs>
<Recipients>
<t:Mailbox>
<t:EmailAddress> user2@contoso.com </t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
</t:Mailbox>
</Recipients>
<MailTipsRequested>All</MailTipsRequested>
</GetMailTips>
</soap:Body>
</soap:Envelope>
https://msdn.microsoft.com/en-us/library/office/dd877060(v=exchg.150).aspx
从 IMsgStore 对象中读取 PR_MAX_SUBMIT_MESSAGE_SIZE
属性 (0x666D0003
)。