TCPIP_SMTP_ArrayPut Function

C

uint16_t TCPIP_SMTP_ArrayPut(
    uint8_t* Data, 
    uint16_t Len
);

Description

This function writes a series of bytes to the SMTP client.

Preconditions

TCPIP_SMTP_UsageBegin() returned true on a previous call.

Parameters

ParametersDescription
DataThe data to be written.
LenHow 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 (i.e., TCPIP_SMTP_MailSend() was called with SMTPClient.Body set to NULL).