LumiSoft Mail Server User API
QuickSendSmartHost Method (smartHost, port, ssl, hostName, userName, password, from, to, messageStream)
Namespaces > LumiSoft.Net.SMTP.Client > SmtpClientEx > QuickSendSmartHost(String, Int32, Boolean, String, String, String, String, String[](), Stream)
Sends specified message to specified smart host. NOTE: Message sending starts from message stream current posision.
Syntax

C# | Visual Basic | Managed C++

    public static void QuickSendSmartHost (
    	string smartHost,
    	int port,
    	bool ssl,
    	string hostName,
    	string userName,
    	string password,
    	string from,
    	string[] to,
    	Stream messageStream
    )

    Public Shared Sub QuickSendSmartHost ( _
    	smartHost As String, _
    	port As Integer, _
    	ssl As Boolean, _
    	hostName As String, _
    	userName As String, _
    	password As String, _
    	from As String, _
    	to As String(), _
    	messageStream As Stream _
    )

    public:
    static void QuickSendSmartHost (
    	String^ smartHost,
    	int port,
    	bool ssl,
    	String^ hostName,
    	String^ userName,
    	String^ password,
    	String^ from,
    	array<String^>^ to,
    	Stream^ messageStream
    )

Parameters

smartHost (String)
  Smarthost name or IP.
port (Int32)
  SMTP port number. Default SMTP port is 25 and SSL port is 465.
ssl (Boolean)
  Specifies if to connected via SSL.
hostName (String)
  Host name reported to SMTP server.
userName (String)
  SMTP user name. Note: Pass empty string if no authentication wanted.
password (String)
  SMTP password.
from (String)
  From address reported to SMTP server.
to (String[]())
  Message recipients.
messageStream (Stream)
  Message stream. NOTE: Message sending starts from message stream current posision.

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