LumiSoft Net Help
StartTlsAsync Method (op)
NamespacesLumiSoft.Net.SMTP.ClientSMTP_ClientStartTlsAsync(SMTP_Client..::..StartTlsAsyncOP)
Starts sending STARTTLS command to SMTP server.
Declaration Syntax
C#Visual BasicVisual C++F#
public bool StartTlsAsync(
	SMTP_Client..::..StartTlsAsyncOP op
)
Public Function StartTlsAsync ( 
	op As SMTP_Client..::..StartTlsAsyncOP
) As Boolean
public:
bool StartTlsAsync(
	SMTP_Client..::..StartTlsAsyncOP^ op
)
member StartTlsAsync : 
        op : SMTP_Client..::..StartTlsAsyncOP -> bool 
Parameters
op (SMTP_Client..::..StartTlsAsyncOP)
Asynchronous operation.
Return Value
Boolean
Returns true if aynchronous operation is pending (The CompletedAsync event is raised upon completion of the operation). Returns false if operation completed synchronously.
Remarks
After successful STARTTLS all SMTP session data(EHLO,MAIL FROM, ....) will be reset. If unknwon(not SMTP error) error happens during STARTTLS negotiation, SMTP client should disconnect.
Exceptions
ExceptionCondition
ObjectDisposedExceptionIs raised when this object is disposed and and this method is accessed.
InvalidOperationExceptionIs raised when SMTP client is not connected or connection is already secure.
ArgumentNullExceptionIs raised when op is null reference.

Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119