Sends raw message to SMTP server.
Declaration Syntax
C# | Visual Basic | Visual C++ | F# |
public void SendMessage( Stream stream )
Public Sub SendMessage ( stream As Stream )
public: void SendMessage( Stream^ stream )
member SendMessage : stream : Stream -> unit
Parameters
- stream (Stream)
- Message stream. Sending starts from stream current position.
Remarks
The stream must contain data in MIME format, other formats normally are rejected by SMTP server.
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. |
SMTP_ClientException | Is raised when SMTP server returns error. |
Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119