Konfiguration
Ab der Version 1.0.14 des TC Smtp Servers wird eine XML-basierende Konfiguration verwendet. Die TcSmtpConfig.xml befindet sich im Installationsverzeichnis des Supplements.
<TcSmtpConfig>
<!-- EnableLogFile: 0 (Disabled), 1 (Enabled), 2 (Verbose) -->
<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>
</TcSmtpConfig>
Wissenswertes zur XML Konfigurationdatei (ab Version 1.0.14)
EnableLogFile: Aktiviert das Logging. Bitte nur für Diagnosezwecke aktivieren.
Authentication: Auswahl der Authentifizierungsmethode.
Port: Option 0 verwendet die Standardports für den Mailversand.
ContentEncoding: Definiert das Entschlüsseln des Inhaltes.
Timeout: Timeout zum Mailversand in ms.
Charset: Definiert die Zeichenkodierung.
Wissenswertes zur Registry Konfiguration (Version < 1.0.14)
Log-File aktivieren:
Der TwinCAT SMTP Server erzeugt eine Logdatei unter "\TwinCAT\SMS SMTP", wenn folgenden Eintrag in der Registry gesetzt wurde.
Registry path: HKEY_LOCAL_MACHINE\SOFTWARE\Beckhoff\TwinCAT SMS / SMTP Server
DWORD: EnableLogFile = 1