I have been using the standard .net SmtpClient class successfully for the past few years but am migrating my code to Aspose.Network. I am having difficulty even connecting to the SmtpHost.
With the standard smtp client I used the following code:
SmtpClient client = new SmtpClient();
client.Host = “hostname”;
client.DeliveryMethod = SmtpDeliveryMethod.Network;
client.UseDefaultCredentials = true;
client.Send(mailMessage);
With the Aspose SmtpClient how do I use the user’s DefaultCredentials?