Communication
11.2 PROFINET
S7-1200 Programmable controller
890 System Manual, V4.2, 09/2016, A5E02486680-AK
MAIL_ADDR_PARAM parameter
At the MAIL_ADDR_PARAM parameter, you define the connection for sending the e-mail in
the structure Tmail_v4 or Tmail_FQDN, and save the e-mail server address and login details.
The structure you use at the MAIL_ADDR_PARAM parameter depends on the format in
which the e-mail server is to be addressed:
● Tmail_v4: Addressing by IP address (IPv4).
● Tmail_FQDN: Addressing by fully qualified domain name (FQDN).
Which structure you can use depends on the interface addressed at the InterfaceId
parameter. If you want to use the "TMAIL_C" instruction with the internal interface, the
structure Tmail_v4 must be used at the MAIL_ADDR_PARAM parameter.
Table 11- 37
Tmail_v4: Addressing the mail server by IP address (IPv4)
InterfaceId LADDR Hardware identifier of the interface
ConnectionType BYTE Connection type. Select 16#20 as the connection type for
IPv4.
Status bit. Set to "1" once the connection is established.
CertIndex BYTE =0: SMTP used (
imple
ail
ransfer
rotocol). SMTP
must be used if the e-mail is being sent via the interface of
WatchDogTime TIME Execution watchdog. Use this parameter to define the
maximum execution time for the send operation.
Note: Connection establishment can take longer (approx.
one minute) if the connection is slow. When you specify the
WATCH_DOG_TIME parameter, remember to allow for the
time required to establish the connection.
The connection is terminated once the specified time has
MailServerAddress IP_v4 IP address of the mail server. IPv4 in the following format:
XXX.XXX.XXX.XXX (decimal).
Example: 192.142.131.237.
UserName STRING[254] Mail server login name
From EMAIL_ADDR E-
mail sender address, which is defined using the following
two STRING parameters. For example: "my-
name@mymailserver.com".
Local-
STRING[64] Local part of sender address, including @ sign. Example:
FullQualified-
STRING[254] Fully Qualified Domain Name ( FQDN for short) of the mail
server. Example: "mymailserver.com".