Configuration
The TC SMTP server uses an XML-based configuration. The TcSmtpConfig.xml is located in the installation directory of the supplement.
Default configuration:
<TcSmtpConfig>
<!-- EnableLogFile: 0 (Disabled), 1 (Enabled) -->
<EnableLogFile>0</EnableLogFile>
<!-- LogSize: in Byte, 0 = use Default -->
<LogSize>0</LogSize>
<!-- Authentication: 0 (NONE), 1 (AUTO), 2 (LOGIN), 3 (NTLM), 4 (PLAIN) -->
<Authentication>1</Authentication>
<!-- Port: 0 (use default ports) -->
<Port>0</Port>
<!-- ContentEncoding: 0 (7BIT), 1 (8BIT), 2 (BINARY), 3 (BASE64), 4 (QUOTED_PRINTABLE) -->
<ContentEncoding>0</ContentEncoding>
<!-- Timeout for the socket connection -->
<Timeout>8000</Timeout>
<!-- Charset for the message content -->
<Charset>iso-8859-1</Charset>
<Reconnects>5</Reconnects>
</TcSmtpConfig>
Note on the XML configuration file
EnableLogFile: a log file is created in the installation directory.
Authentication: selection of the authentication method. Use option 1 as default.
Port: option 0 uses the default ports for sending mail.
ContentEncoding: defines the decoding of the content.
Timeout: timeout for sending mail in ms.
Charset: defines the character encoding.
Reconnects: number of repetitions.
Requirements
Development environment |
Target system type |
PLC libraries to be linked |
---|---|---|
TwinCAT v3.0.0 |
PC or CX (x86) |
Tc2_Smtp |