I have code for sending email using Exchange Web Services (EWS API 1.1). There is no exception if I use hard-coded parameter values, for example:
service.AutodiscoverUrl("me@mydomain.com",
delegate
{
return true;
});
But if I try to use a variable, I get an error when I find the URL: "Autodiscover service could not be found."
string userName = "me@mydomain.com";
service.AutodiscoverUrl(userName,
delegate
{
return true;
});
Can I use variables with the autodiscoverurl method? What am I doing wrong?
Sanjay
source
share