LumiSoft Mail Server User API
Connect Method (localEndpoint, host, port, ssl)
Namespaces > LumiSoft.Net.SMTP.Client > SmtpClientEx > Connect(IPEndPoint, String, Int32, Boolean)
Connects to sepcified host.
Syntax

C# | Visual Basic | Managed C++

    public void Connect (
    	IPEndPoint localEndpoint,
    	string host,
    	int port,
    	bool ssl
    )

    Public Sub Connect ( _
    	localEndpoint As IPEndPoint, _
    	host As String, _
    	port As Integer, _
    	ssl As Boolean _
    )

    public:
    void Connect (
    	IPEndPoint^ localEndpoint,
    	String^ host,
    	int port,
    	bool ssl
    )

Parameters

localEndpoint (IPEndPoint)
  Sets local endpoint. Pass null, to use default.
host (String)
  Host name or IP address.
port (Int32)
  Port where to connect.
ssl (Boolean)
  Specifies if to connected via SSL. Default SMTP port is 25 and SSL port is 465.

Assembly: LumiSoft.Net Version: 2.0.2636.18419 (Module: LumiSoft.Net)