...
To create an email, you will first need to create an instance of SMTPc_MSG.
ElementStructure field | Type | Description |
---|---|---|
*From | SMTPc_MBOX | Pointer to the FROM mailbox instance. |
*ToArray[SMTPc_CFG_MSG_MAX_TO] | SMTPc_MBOX | Array of pointer to the TO mailbox instances |
*ReplyTo | SMTPc_MBOX | Pointer to the ReplyTo mailbox instance |
*Sender | SMTPc_MBOX | Pointer to the Sender mailbox instance |
*CCArray [SMTPc_CFG_MSG_MAX_CC] | SMTPc_MBOX | Array of pointer to the TO mailbox instances |
*BCCArray [SMTPc_CFG_MSG_MAX_BCC] | SMTPc_MBOX | Array of pointer to the TO mailbox instances |
MsgID [SMTPc_MSG_MSGID_LEN] | CPU_CHAR | Unique msg id |
MIMEMsgHdrStruct | SMTPc_MIME_ENTITY_HDR | Mail object MIME content headers |
*Subject | CPU_CHAR | Email subject string |
*AttachArray[SMTPc_CFG_MSG_MAX_ATTACH] | SMTPc_ATTACH | Array of pointer to attachment instances. |
*ContentBodyMsg | CPU_CHAR | Body message of the email. |
ContentBodyMsgLen | CPU_INT32U | Body message length |
...