Yt_CO_SMTP_Data
Yt_PO_SMTP_Data: STRUCT
| Element | Data Type | Description | Usage |
|---|---|---|---|
| DNSIP | Yt_String16 | DNS server IP (local), used to perform lookup of mail server domain | Yt_PO_STMP_Data.DNSIP |
| DNSPort | UINT | DNS port, default 53, leave blank unless other port is used | Yt_PO_STMP_Data.DNSPort |
| SMTPDomain | Yt_String128 | SMTP server domain name (e.g. smtp.yourcompany.com), used for DNS lookup | Yt_PO_STMP_Data.SMTPDomain |
| SMTPIP | Yt_String16 | The IP of the SMTP server, blank by default, provide IP to override DNS lookup | Yt_PO_STMP_Data.SMTPIP |
| SMTPPort | UINT | SMTP port, usually 25 - note: does not support SSL encrypted SMTP |
Yt_PO_STMP_Data.SMTPPort |
| LocalIP | Yt_String16 | Local IP of the controller | Yt_PO_STMP_Data.LocalIP |
| Domain | Yt_String128 | Domain for SMTP EHLO/HELO command, example: yaskawa.com | Yt_PO_STMP_Data.Domain |
| Sender | Yt_String128 | Sender e-mail address, example: [email protected] | Yt_PO_STMP_Data.Sender |
| SenderName | Yt_String32 | Name of sender, example: John Smith | Yt_PO_STMP_Data.SenderName |
| Subject | Yt_String32 | Subject of the email | Yt_PO_STMP_Data.Subject |
| Recipient | RecipientArray | Array of rcpt_struct (up to 10, or change datatype declaration) | Yt_PO_STMP_Data.Recipient |
| Recipients | INT | Number of emails in RecipientArray | Yt_PO_STMP_Data.Recipients |
| Timeout | TIME | Timeout for connecting to the SMTP server, defaults to 5s | Yt_PO_STMP_Data.Timeout |
Yt_CO_RecipientArray: ARRAY
| Array Name | Data Type | Range | Description | Usage |
|---|---|---|---|---|
| Yt_CO_RecipientArray | Yt_PO_RecipientStruct | 0..9 |
|
Yt_CO_RecipientStruct[0] |
Yt_PO_RecipientStruct: STRUCT
| Element | Data Type | Description | Usage |
|---|---|---|---|
| Yt_String128 |
|
Yt_PO_RecipientStruct.Email | |
| Name | Yt_String32 |
|
Yt_PO_RecipientStruct.Name |