Starts sending specified raw message to SMTP server.
Declaration Syntax
C# | Visual Basic | Visual C++ | F# |
[ObsoleteAttribute("Use method 'SendMessageAsync' instead.")] public IAsyncResult BeginSendMessage( Stream message, AsyncCallback callback, Object state )
<ObsoleteAttribute("Use method 'SendMessageAsync' instead.")> Public Function BeginSendMessage ( message As Stream, callback As AsyncCallback, state As Object ) As IAsyncResult
public: [ObsoleteAttribute(L"Use method 'SendMessageAsync' instead.")] IAsyncResult^ BeginSendMessage( Stream^ message, AsyncCallback^ callback, Object^ state )
[<ObsoleteAttribute("Use method 'SendMessageAsync' instead.")>] member BeginSendMessage : message : Stream * callback : AsyncCallback * state : Object -> IAsyncResult
Parameters
- message (Stream)
- Message stream. Message will be readed from current stream position and to the end of stream.
- callback (AsyncCallback)
- Callback to call when the asynchronous operation is complete.
- state (Object)
- User data.
Return Value
IAsyncResult
An IAsyncResult that references the asynchronous method.
An IAsyncResult that references the asynchronous method.
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. |
ArgumentNullException | Is raised when message is null. |
Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119