title: EWS Managed API: how to set From of email?
body: <p>I'm using EWS Managed API to sending email. Account "<strong>account</strong>@domain.com" have permissions "Send as" to  use "<strong>sender</strong>@domain.com" mailbox to send messages (from Outlook, it's work fine).</p>
  
  <p>But I try from code - it's not work, in mail i'm read in the field "From" "<strong>account</strong>@domain.com".</p>
  
  <pre><code>....
  EmailMessage message = new EmailMessage(service);
  message.Body = txtMessage;
  message.Subject = txtSubject;
  message.From = txtFrom;
  ....
  message.SendAndSaveCopy();
  </code></pre>
  
  <p>How to make sending mail on behalf of another user? :)</p>