ISMTPTransport::SendDataStream method
[ISMTPTransport::SendDataStream is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions.]
Sends a Simple Mail Transport Protocol (SMTP) message stream to the server.
Syntax
HRESULT SendDataStream(
[in] IStream *pStream,
[in] ULONG cbSize
);
Parameters
-
pStream [in]
-
Type: IStream*
Specifies a pointer to the IStream object that contains the ANSI MIME/RFC 822 message stream.
-
cbSize [in]
-
Type: ULONG
Specifies a ULONG that contains the size of the message in bytes.
Return value
Type: HRESULT
Returns one of the following values.
Return code | Description |
---|---|
|
Indicates success. |
|
Indicates that pStream is NULL. |
|
Indicates that an attempt to allocate memory failed. |
|
Indicates that either the server connection has not yet been established or it has been lost. |
|
Indicates that an unknown error occurred. |
Remarks
This method calls the ISMTPTransport::CommandDOT method when it is finished.
Requirements
Minimum supported client |
Windows XP [desktop apps only] |
Minimum supported server |
Windows Server 2003 [desktop apps only] |
Product |
Outlook Express 6.0 |
Header |
|
IDL |
|
DLL |
|