Send Email Message using Exchange Server with WebDav

Contents
[ ]

You can send email messages using an Exchange Server with the help of the tools in com.aspose.email. The ExchangeClient.send() method accepts a MailMessage instance as a parameter and sends the email. This article explains how to send email messages using an Exchange Client of the API.

Send Email Messages Using Exchange WebDav

To send emails using an Exchange Server:

  1. Create an instance of the ExchangeClient class.
  2. Specify server name, username, password, and domain.
  3. Create an instance of the MailMessage class.
  4. Specify the from, to, subject and other MailMessage properties.
  5. Call the ExchangeClient.send() method to send the email.

The sample code below sends email messages using Exchange Server.