106BTeleservice communication (SMTP e-mail)
13.1 TM_Mail transfer e-mail instruction
SMTP authentication
TM_MAIL supports the SMTP AUTH LOGIN authentication method that is required by most
mail servers. For information on the authentication method used by your mail server, please
refer to the manual of the mail server or the website of your Internet Service Provider.
The AUTH LOGIN authentication method uses the TM_MAIL USERNAME and PASSWORD
parameters to access the mail server. The user name and password must be set up on an e-
mail account at a mail server.
If no value is assigned for the USERNAME parameter, then the AUTH LOGIN authentication
method is not used and the e-mail is sent without authentication.
TO_S, CC, and FROM parameters
The parameters TO_S, CC and FROM are strings, as shown in the following examples:
● TO_S: <wenna@mydomain.com>, <ruby@mydomain.com>,
● CC: <admin@mydomain.com>, <judy@mydomain.com>,
● FROM: <admin@mydomain.com>
The following rules must be used when entering these parameters:
● The characters "TO_S", "CC" and "FROM:" must be entered.
● A space and an opening angle bracket "<" must be the entered before each address.
● An ending angle bracket ">" must be entered after each address.
● A comma character "," must be entered after each address for the TO_S and CC
addresses.
● Only one e-mail address may be used for the FROM entry, with no comma at the end.
Because of run-time mode and memory usage, a syntax check is not performed on the
TM_MAIL TO_S, CC and FROM parameters.
STATUS and SFC_STATUS parameters
The execution condition codes returned by TM_MAIL can be classified as follows:
● W#16#0000: Operation of TM_MAIL was completed successfully
● W#16#7xxx: Status of TM_MAIL operation
● W#16#8xxx: An error in an internal call to a communication device or the mail server
The following table shows the execution condition codes of TM_MAIL with the exception of
the error codes from internally called communication modules.
630
S7-1200 Programmable controller
System Manual, 11/2011, A5E02486680-05