Exchange Web Services, funny problem with authentication, can't recieve mail from fixed email, but can from current user
I'm using the fixed email address to get the files, becuase it's special email for agreements and etc...
But, I have found that, even I use the next code:
static string email = "rumosahrdata@rosinter.ru";
service.A开发者_Python百科utodiscoverUrl(email);
But, I don't get the mail from this email, I'm getting mails from my current user in Exchange ( and if another user try to do it, he will get mail from his own email, not from fixed ), seems to be because of Windows Authentication.
Why I have got such problem? And I wonder why method AutodiscoverUrl() - wants email without password?
Best Regards,
Oleg
Before calling .AutodiscoverUrl
you need to set UseDefaultCredentials
to false
and assign Credentials
according to the account you want to access.
Otherwise the current user (Windows authentication/current Outlook-Profile) is the default...
精彩评论