title: Get raw MIME for an Outlook Message
body: <p>I was able to get the mail object with attachment using following API Call</p>
  
  <pre><code>https://graph.microsoft.com/v1.0/me/messages/${messageId}?$expand=attachments
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/yNz6Pm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yNz6Pm.png" alt="enter image description here"></a></p>
  
  <p>I need to save raw MIME for the mail (i.e. <code>.eml</code>) which will be uploaded to our internal CRM. </p>
  
  <p>I understand that one can make a simple <code>.eml</code> file in below fashion but I want to know if there is a simpler alternative to get this from the API directly.</p>
  
  <pre><code>To: Demo-Recipient &lt;demo@demo.example.com&gt;
  Subject: EML with attachments
  X-Unsent: 0
  Content-Type: multipart/mixed; boundary=--boundary_text_string
  
  ----boundary_text_string
  Content-Type: text/html; charset=UTF-8
  
  &lt;html&gt;
  &lt;body&gt;
  &lt;p&gt;Example&lt;/p&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  
  ----boundary_text_string
  Content-Type: application/octet-stream; name=demo.txt
  Content-Transfer-Encoding: base64
  Content-Disposition: attachment
  ZXhhbXBsZQ==
  
  ----boundary_text_string
  Content-Type: application/octet-stream; name=demo.log
  Content-Transfer-Encoding: base64
  Content-Disposition: attachment
  ZXhhbXBsZQ==
  
  ----boundary_text_string--
  </code></pre>