Starts sending MAIL FROM: command to SMTP server.

C# | Visual Basic | Visual C++ | F# |
[ObsoleteAttribute("Use method MailFromAsync instead.")] public IAsyncResult BeginMailFrom( string from, long messageSize, SMTP_DSN_Ret ret, string envid, AsyncCallback callback, Object state )
<ObsoleteAttribute("Use method MailFromAsync instead.")> Public Function BeginMailFrom ( from As String, messageSize As Long, ret As SMTP_DSN_Ret, envid As String, callback As AsyncCallback, state As Object ) As IAsyncResult
public: [ObsoleteAttribute(L"Use method MailFromAsync instead.")] IAsyncResult^ BeginMailFrom( String^ from, long long messageSize, SMTP_DSN_Ret ret, String^ envid, AsyncCallback^ callback, Object^ state )
[<ObsoleteAttribute("Use method MailFromAsync instead.")>] member BeginMailFrom : from : string * messageSize : int64 * ret : SMTP_DSN_Ret * envid : string * callback : AsyncCallback * state : Object -> IAsyncResult

- from (String)
- Sender email address reported to SMTP server.
- messageSize (Int64)
- Sendable message size in bytes, -1 if message size unknown.
- ret (SMTP_DSN_Ret)
- Delivery satus notification(DSN) ret value. For more info see RFC 3461.
- envid (String)
- Envelope ID. Value null means not specified. For more info see RFC 3461.
- callback (AsyncCallback)
- Callback to call when the asynchronous operation is complete.
- state (Object)
- User data.

IAsyncResult
An IAsyncResult that references the asynchronous disconnect.
An IAsyncResult that references the asynchronous disconnect.

Before using ret or envid arguments, check that remote server supports SMTP DSN extention.

Exception | Condition |
---|---|
ObjectDisposedException | Is raised when this object is disposed and this method is accessed. |
InvalidOperationException | Is raised when SMTP client is not connected. |
Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119