SmtpAbort Method |
Namespace: MailBee.SmtpMail
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 |
---|
No events will be raised after this method has been called. |