TeleService communication (SMTP email)
14.1 TM_Mail (Send email) instruction
S7-1200 Programmable controller
System Manual, V4.2, 09/2016, A5E02486680-AK
1303
Dial-up connection: Configuring the TS adapter IE parameters
You must configure the Teleservice adapter IE parameters for outgoing calls to connect with
the dial-up server of your Internet Service Provider. If you set the call "on demand" attribute,
then the connection is established only when an e-mail will be sent. For an analog modem
connection, more time is required for the connection process (approx. a minute longer). You
must include the extra time, in the WATCH_DOG_TIME value.
Table 14- 3 Data types for the parameters
A low to high (positive edge) signal starts the operation.
ID IN Int Connection identifier: See the ID parameter of the instruc-
tions TCON, TDISCON, TSEND and TRCV.
A number that is not used for any additional instances of this
instruction in the user program must be used.
TO_S IN String Recipient addresses: STRING data with a maximum length
CC IN String CC copy to recipient addresses (optional): STRING data
with a maximum length of 240 characters
SUBJECT IN String Subject name of the email: STRING data with a maximum
TEXT IN String Text message of the email (optional): STRING data with a
maximum length of 240 characters.
If this parameter is an empty string, then the email will be
sent without message text.
ATTACHMENT IN Variant Pointer to email attachment data: Byte, word, or double
word data with a maximum length of 65534 bytes.
If no value is assigned, then the email sent without an at-
DONE OUT Bool
• 0 - Job not yet started or still executing.
• 1 - Job was executed error-free.
BUSY OUT Bool
• 0 - No operation in progress
• 1- Operation in progress
ERROR OUT Bool The ERROR bit =1 for one scan, after the last request was
terminated with an error. The error code value at the
STATUS output is valid only during the single scan where
STATUS OUT Word Return value or error information of the TM_MAIL instruc-