Sends EHLO/HELO command to SMTP server.
Declaration Syntax
C# | Visual Basic | Visual C++ | F# |
public void EhloHelo( string hostName )
Public Sub EhloHelo ( hostName As String )
public: void EhloHelo( String^ hostName )
member EhloHelo : hostName : string -> unit
Parameters
- hostName (String)
- Local host DNS name.
Remarks
NOTE: EHLO command will reset all SMTP session state data.
Exceptions
Exception | Condition |
---|---|
ObjectDisposedException | Is raised when this object is disposed and this method is accessed. |
InvalidOperationException | Is raised when SMTP client is not connected. |
ArgumentNullException | Is raised when hostName is null reference. |
ArgumentException | Is raised when any of the arguments has invalid value. |
SMTP_ClientException | Is raised when SMTP server returns error. |
Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119