Konfiguration

Der TC SMTP Server verwendet eine XML-basierende Konfiguration. Die TcSmtpConfig.xml befindet sich im Installationsverzeichnis des Supplements.

Default-Konfiguration:


<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>

Hinweis zur XML Konfigurationdatei

EnableLogFile: Es wird eine Logdatei im Installationsverzeichnis erstellt.

Authentication: Auswahl der Authentifizierungsmethode. Verwenden Sie die Option 1 als Default.

Port: Option 0 verwendet die Standard-Ports für den Mailversand.

ContentEncoding: Definiert das Entschlüsseln des Inhaltes.

Timeout: Timeout zum Mailversand in ms.

Charset: Definiert die Zeichenkodierung.

Reconnects: Anzahl der Wiederholungen.

Voraussetzungen

Entwicklungsumgebung

Zielplattform

Einzubindende SPS-Bibliotheken

TwinCAT v3.0.0

PC or CX (x86)

Tc2_Smtp