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
S_OK
Indicates success.
E_INVALIDARG
Indicates that pStream is NULL.
E_OUTOFMEMORY
Indicates that an attempt to allocate memory failed.
IXP_E_NOT_CONNECTED
Indicates that either the server connection has not yet been established or it has been lost.
IXP_E_SOCKET_WRITE_ERROR
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
Imnxport.h
IDL
Imnxport.idl
DLL
Inetcomm.dll (version 6.0 or later)