Como Puedo Realizar Un Conexion con Servidor Exchange y Descargar los Correos de este RRS feed

  • Question

  • saludos a Todos

    Como puedo realizar una conexión con un servidor de correo exchange 

    - la primera pregunta que estoy debo hacer es hotmail tiene habilitado el protocolo de Exchange  ? (esto para hacer pruebas con hotmail)

    - la segunta estoy utilizando el siguiente namespace Microsoft.Exchange.WebServices.Data y no puedo realizar el Autosicovery de la url del servidor 

          //Set service credentials. In this case a user account who has permissions to user mailboxes.
                string domain = "";
                string credUser = _username;
                string credPwd = _password;
                bool preAuthenticate = service.PreAuthenticate;
                service.Credentials = new WebCredentials(credUser, credPwd);
                service.AutodiscoverUrl(_username);------AQUI GENERA LA Excepcion

                //new System.Net.NetworkCredential(credUser, credPwd, domain);

                //Set the user who is logged in and whose mailbox needs to be checked for unread emails.
                string impUser = _username + "@" + _url;
                service.ImpersonatedUserId = new ImpersonatedUserId(ConnectingIdType.SmtpAddress, _username);
                //Bind the Inbox folder to the service object
                Folder inbox =  Folder.Bind(service, WellKnownFolderName.Inbox);
                //The search filter to get unread email

                SearchFilter sf = new SearchFilter.SearchFilterCollection(LogicalOperator.And, new SearchFilter.IsEqualTo(EmailMessageSchema.IsRead, false));

                ItemView view = new ItemView(20);
                //Fire the query for the unread items
                FindItemsResults<Item> findResults = service.FindItems(WellKnownFolderName.Inbox, sf, view);

    JEYSSON RAMIREZ | Desarrollador Bogotá

    Tuesday, February 5, 2013 7:52 PM

All replies


    Thank you for posting in the MSDN forum.

    Since we just support the English issue, I’m afraid that you would select the correct language forum for this issue. I will move this thread to the Off-topic forum, thanks for your understanding.

    Best Regards,

    Jack Zhai [MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Wednesday, February 6, 2013 10:05 AM