I created a little application with sending emails asynchronously.
SmtpClient client = new SmtpClient(…);
client.SendCompleted += client_SendCompleted;
MailMessage msg = new MailMessage();
DialogResult dialogResult = MessageBox.Show(“Stop sending”, “Test”, MessageBoxButtons.YesNo);
if (dialogResult == DialogResult.Yes)
When I send email with attachment and try to cancel it Aspose.Network throw exception:
Aspose.Network.Mail.SmtpException was unhandled
Message=“The operation was aborted.”
What am I doing wrong?
Aspose.Network - v184.108.40.206
We are looking into it and will get back to you soon.