TCPIP_SMTPC_ATTACH_FILE Structure
C
typedef struct {
TCPIP_SMTPC_ATTACH_TYPE attachType;
TCPIP_SMTPC_ENCODE_TYPE attachEncode;
const char* fileName;
} TCPIP_SMTPC_ATTACH_FILE;
Description
Structure: TCPIP_SMTPC_ATTACH_FILE.
This data structure describes a mail file attachment.
Members
Members | Description |
---|---|
attachType | Type of the contained data. |
attachEncode | Preferred encoding. |
fileName | Name of the file to be opened. |
Remarks
The specified file will be opened for reading and attached to the email.
If the attach type is application octet stream then the suggested encoding will be overwritten and BASE64 encoding will be used.
The file has to be persistent until the mail completion callback will be called.
If file could not be opened when the mail is sent a warning will be issued and the file will be ignored.