Is there a way to retrieve the max allowed size of email that can be send throught an EWS SOAP request or by a MAPI property tag?
Thank's
there is a GetMailTips operation that returns MaxMessageSize element
<t:MaxMessageSize xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">10485760</t:MaxMessageSize>
Request:
<?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> [email protected] </t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
</SendingAs>
<Recipients>
<t:Mailbox>
<t:EmailAddress> [email protected] </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