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

C# | Visual Basic | Managed C++

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

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

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

Parameters

host (String)
  Host name or IP address.
port (Int32)
  Port where to connect. Default SMTP port is 25 and SSL port is 465.
ssl (Boolean)
  Specifies if to connected via SSL.

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