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.
ExchangeService eService
Luay Almamury
96
Reputation points
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 | Exchange Server | Management
Exchange | Exchange Server | Management
The administration and maintenance of Microsoft Exchange Server to ensure secure, reliable, and efficient email and collaboration services across an organization.
Answer accepted by question author
-
Luay Almamury 96 Reputation points
2021-03-17T13:32:29.38+00:00