title: Email Message save to Local Folder through EWS
body: <p>I am using this method to save email message to local drive and it's worked fine if there is an attachment with email.</p>
  
  <pre><code>          _emailMessage.Load(new PropertySet(ItemSchema.MimeContent)); 
             MimeContent mc = _emailMessage.MimeContent;
             var path = Path.Combine(DirFullPath, emailMsgName);            
             FileStream fs = new FileStream(path, FileMode.Create);        
             fs.Write(mc.Content, 0, mc.Content.Length);                
             fs.Close();
  </code></pre>
  
  <p>If there is no attachment it throws an exception and not able to save emailmessage to the folder. Here is the exception "This operation can't be performed because this service object doesn't have an Id."</p>
  
  <p>Please let me know how to deal with this issue.</p>
  
  <p>Thanks</p>