So there are some great examples on the net of how to use Mailkit to send an email via SMTP.
Typically ending with :
client.Authenticate(theSMTPUsername,theSMTPPassword);
client.Send(emailMessage);
client.Disconnect(true);
However this is no good if async is needed :
client.Authenticate(theSMTPUsername,theSMTPPassword);
client.SendAsync(emailMessage);
client.Disconnect(true);
However, what I would like to know is when an async Send has completed, or if it does not succeed. Under .Net native libraries this is achieved with a callback (event handler).
Is it possible to define a 'Completed' callback handler for a MailKit SendAsync, and if not what is best practise to discover if it succeeded or not.
Thanks