ExchangeService eService

Luay Almamury 96 Reputation points
2021-03-11T19:59:18.08+00:00

I'm using ExchangeService eService = new ExchangeService(ExchangeVersion.Exchange2010_SP1); and when I tried to changed email from that different what its trusted from server like : EmailMessage emailMessage = new EmailMessage(eService); emailMessage.From = Email_From; // here i got the error The user account which was used to submit this request does not have the right to send mail on behalf of the specified sending account. Cannot submit message How I can add new email so I can use it in exchnageServer ?

Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,486 questions
{count} votes

Accepted answer
  1. Luay Almamury 96 Reputation points
    2021-03-17T13:32:29.38+00:00

    I'm using office 356 and I can't use SentAS or on behalves of because I don't have admin permission to access and change. I want to go around that and using C# to overcome this issue.
    I tried to use emailMessage.Sender = "myEmail@réalisations .com"; but it still pointing to the different email in office 356 setup as default email.


0 additional answers

Sort by: Most helpful