Send Email Message using Exchange Server with WebDav
Contents
[
Hide
]
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:
- Create an instance of the ExchangeClient class.
- Specify server name, username, password, and domain.
- Create an instance of the MailMessage class.
- Specify the from, to, subject and other MailMessage properties.
- Call the ExchangeClient.send() method to send the email.
The sample code below sends email messages using Exchange Server.