Sending an email from a specific user(sending email messages on behalf of another person)

How to send an email from a specific user(sending email messages on behalf of another person)?

Delegate access is granted to individuals who will manage certain aspects of Microsoft Outlook for another person. For example, a delegate may have permission to send email messages on behalf of another person, or to manage a person’s calendar.

Let's assume that account B has delegate access permissions of Editor granted by account A.
If B wants to send an email via SendExchangeMailMessage activity, on behalf of A, the activity properties should be used as follows:

Logon:

  • User: B account address
  • Password: B password

Sender:

  • From: A account address

The email will be received as sent from B(name of user) on behalf of A(name of user).