SmtpAbort Method
Forces MailBee to cancel all pending operations and close all opened connections as soon as possible.

Namespace: MailBee.SmtpMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax
public void Abort()
Remarks

A method which was in progress when Abort method has been called will throw MailBeeUserAbortException (unless ThrowExceptions is not false). If the component was not doing any work at the moment (IsBusy was false), the connection is aborted but no exception is thrown.

This method tries to abort the current network operation immediately, which works for all cases except of resolving a domain name into IP address. Due to .NET framework limitations, this operation cannot be aborted. Thus, sometimes you may experience a several seconds delay between calling this method and getting MailBeeUserAbortException (the time needed for DNS resolve to complete).

Note Note
No events will be raised after this method has been called.
To restore the component from the aborted state, the developer can use ResetState method.
See Also