LumiSoft Net Help
MailFrom Method (from, messageSize, ret, envid)
NamespacesLumiSoft.Net.SMTP.ClientSMTP_ClientMailFrom(String, Int64, SMTP_DSN_Ret, String)
Sends MAIL command to SMTP server.
Declaration Syntax
C#Visual BasicVisual C++F#
public void MailFrom(
	string from,
	long messageSize,
	SMTP_DSN_Ret ret,
	string envid
)
Public Sub MailFrom ( 
	from As String,
	messageSize As Long,
	ret As SMTP_DSN_Ret,
	envid As String
)
public:
void MailFrom(
	String^ from, 
	long long messageSize, 
	SMTP_DSN_Ret ret, 
	String^ envid
)
member MailFrom : 
        from : string * 
        messageSize : int64 * 
        ret : SMTP_DSN_Ret * 
        envid : string -> 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.
ret (SMTP_DSN_Ret)
Delivery satus notification(DSN) RET value. For more info see RFC 3461.
envid (String)
Delivery satus notification(DSN) ENVID value. Value null means not specified. For more info see RFC 3461.
Remarks
Before using ret or envid arguments, check that remote server supports(SMTP_Client.EsmtpFeatures) SMTP DSN extention.
Exceptions
ExceptionCondition
ObjectDisposedExceptionIs raised when this object is disposed and this method is accessed.
InvalidOperationExceptionIs raised when SMTP client is not connected.
ArgumentExceptionIs raised when any of the arguments has invalid value.
SMTP_ClientExceptionIs raised when SMTP server returns error.

Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119