ETH_EMAIL_FILE_REF_TYPE

This structure is used to supply the Function Block ETH_SMTP_EMAIL_SEND with a file attachment. The ETH_EMAIL_DATA_TYPE structure holds an array of 10 ETH_EMAIL_FILE_REF_TYPE structures, so up to 10 files can be attached to each email.

The filename of an attachment can be different from the filename in the PLC’s filesystem. The variable psNameInMail only defines the name of the file inside the email, while psFilePath must contain the full path including name of the file to be attached.

Note

Type and the content need to be created and defined by the user.

Available as of PLC runtime system: V2.1 Remark:
Included in library: Ethernet_AC500_V10.lib  
Visible variable Type Default value Description
psNameInMail POINTER TO STRING(255) 0 Pointer to a string containing a name to be used for the file in the email. (Can differ from the actual filename in the PLC.)
psFilePath POINTER TO STRING(255) 0 Pointer to a string containing the full path to the file to be attached including the filename