Conectándose al servidor de Exchange usando WebDav
Contents
[
Hide
]
Aspose.Email proporciona la capacidad para Exchange 2003 y 2007 utilizando el protocolo WebDAV al exponer la clase ExchangeClient. Este artículo muestra cómo instanciar objetos de ambas clases y el mismo método se puede utilizar en todos los ejemplos siguientes en esta guía de programación.
Conectar a Exchange usando ExchangeClient
Los siguientes ejemplos de código muestran cómo escribir una función personalizada que se puede llamar en segmentos de código para instanciar ExchangeClient, que luego se puede utilizar para realizar varias operaciones de Exchange.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-email/Aspose.Email-for-Java | |
public static ExchangeClient getExchangeClient() { | |
// Create instance of ExchangeClient class by giving credentials | |
ExchangeClient client = new ExchangeClient("http://MachineName/exchange/Username", "Username", "password", "domain"); | |
return client; | |
} |