Search code examples
c#exchangewebservicesews-managed-api

EmailMessage in EWS Managed API: The From Field


I am using the Exchange Services Managed API.... I am able to send emails just fine with it, but is there a way to change the displayed From field when the email is sent....

Currently we have a default user called DoNotReply@xxxxxxx.com. When ever I send the email it shows up in the from field as DoNotReply.

Can I change that in code?

I tried using:

EmailMessage emailMessage = new EmailMessage(service);
emailMessage.From="xxxxx xxxxx xxxxx";`

But that doesn't seem to change anything. So, is it possible to do this?


Solution

  • I ended up asking the Exchange admin to just change the display name for DoNotReply email