Says hello to the server.

Namespace:  Lesnikowski.Client
Assembly:  Mail (in Mail.dll) Version: 3.0.10208.1049

Syntax

C#
public SmtpResponse Ehlo(
	HeloType heloType,
	string domain
)
Visual Basic (Declaration)
Public Function Ehlo ( _
	heloType As HeloType, _
	domain As String _
) As SmtpResponse
Visual C++
public:
SmtpResponse^ Ehlo(
	HeloType heloType, 
	String^ domain
)

Parameters

heloType
Type: Lesnikowski.Client..::.HeloType
HELO type (EHLO, HELO, Both)
domain
Type: System..::.String
May be null, but rejected by some servers.

Return Value

Server's response.

Exceptions

ExceptionCondition
Lesnikowski.Client..::.ServerExceptionOn error response

See Also