Data types, Data type: smtp_data, Data type declaration – Yaskawa MotionWorks IEC Toolboxes User Manual
Page 166: Code example

Communications Toolbox: DataTypes
MotionWorks IEC61131-3 Toolboxes: 2013-09-13
153
Data Types
Data Type: SMTP_Data
Data Type Declaration
TYPE
SMTP_Data : STRUCT
DNSIP : YC_STRING16;
(* DNS server IP (local), used to perform lookup of mail server domain *)
DNSPort : UINT;
(* DNS port, default is 53, leave blank unless other port is used *)
SMTPDomain : YC_STRING128;
(* SMTP server domain name (e.g. smtp.yourcompany.com), used for DNS
lookup *)
SMTPIP : YC_STRING16;
(* The IP of the SMTP server, blank by default, provide IP to override DNS lookup
*)
SMTPPort : UINT;
(* SMTP port, usually 25 - note: does not support SSL encrypted SMTP *)
LocalIP : YC_STRING16;
(* Local IP of the controller *)
Domain : YC_STRING128;
(* Domain for SMTP EHLO/HELO command, example: yaskawa.com *)
Sender : YC_STRING128;
(* Sender e-mail address, example: [email protected] *)
SenderName : YC_STRING32;
(* Name of sender, example: John Smith *)
Subject : YC_STRING128;
(* Subject of email, example: How awesome is the e-mail function block? *)
RcptArray : rcpt_array;
(* Array of rcpt_struct (up to 10, or change datatype declaration), email and name
*)
NumRcpt : INT;
(* Number of emails in rcpt_array *)
Timeout : TIME;
(* Timeout for connecting to the SMTP server, defaults to 5s *)
END_STRUCT;
END_TYPE
Code Example
smtpdata.LocalIP := '192.168.1.1';