title: How to send from a shared non-Exchange account?
body: <p>How can I change the <code>.sentonbehalfofname</code> property?</p>
  <p>We changed shared mailbox from Exchange to normal account. Mailbox added to Outlook as a normal account.</p>
  <p>With the following code I get:</p>
  <blockquote>
  <p>&quot;This message could not be sent. You do not have the permission to send the message on behalf of the specified user.&quot;</p>
  </blockquote>
  <pre><code>'   Construct email
      Set OutMail = OutApp.CreateItem(0)
      With OutMail
          .SentOnBehalfOfName = &quot;bbb@aaa.com&quot;
          .BodyFormat = 2
          Set editor = .GetInspector.WordEditor
          editor.Content.Paste
          .To = currentEmailAddress
          .Subject = emailTitle &amp; &quot; ID:&quot; &amp; Range(teamMemberIDColumn &amp; cell.Row).Value
          .Display
          .Send
  </code></pre>