SMTPPutString Function

Microchip TCP/IP Stack

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

Writes a string to the SMTP client.

Preconditions

SMTPBeginUsage returned TRUE on a previous call.

Parameters
Parameters 
Description 
Data 
The data to be written 
Returns

The number of bytes written. If less than the length of Data, 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.