LumiSoft Net Help
MailFrom Method (from, messageSize)
Namespaces ► LumiSoft.Net.SMTP.Client ► SMTP_Client ► MailFrom(String, Int64)
Sends MAIL command to SMTP server.
Declaration Syntax

C# | Visual Basic | Visual C++ | F#

    public void MailFrom(
    	string from,
    	long messageSize
    )

    Public Sub MailFrom (
    	from As String,
    	messageSize As Long
    )

    public:
    void MailFrom(
    	String^ from,
    	long long messageSize
    )

    member MailFrom :
            from : string *
            messageSize : int64 -> unit

Parameters

from (String)
  Sender email address. Value null means no sender info.

messageSize (Int64)
  Message size in bytes. Value -1 means that message size unknown.

Remarks
Before using ret or envid arguments, check that remote server supports(SMTP_Client.EsmtpFeatures) SMTP DSN extention.
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.
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