SMTPPutArray Function

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
SMTPPutArray Function
C
WORD SMTPPutArray(
    BYTE* Data, 
    WORD Len
);
Description

Writes a series of bytes to the SMTP client.

Preconditions

SMTPBeginUsage returned TRUE on a previous call.

Parameters
Parameters 
Description 
Data 
The data to be written 
Len 
How many bytes should be written 
Returns

The number of bytes written. If less than Len, then the TX FIFO became full before all bytes could be written.

Remarks

This function should only be called externally when the SMTP client is generating an on-the-fly message. (That is, SMTPSendMail was called with SMTPClient.Body set to NULL.)

Microchip TCP/IP Stack 5.42.08 - June 15, 2013
Copyright © 2012 Microchip Technology, Inc.  All rights reserved.