ns=2;s=DEPRAG Smart/Network/EMailClient/SmtpServerSettings/IsSslEnabled
Specifies whether the connection to the SMTP server should be encrypted using SSL protocol.
In addition to the parameters already explained, the following variables must be created / transferred for the implementation in TwinCAT 3:
VAR
bReadIsSslEnabled : BOOL;
bWriteIsSslEnabled : BOOL;
hrIsSslEnabled : HRESULT;
IsSslEnabled : BOOL;
fbSmtpServerSettings : FB_SmtpServerSettings;
END_VAR
hrIsSslEnabled := fbSmtpServerSettings.ReadIsSslEnabled(
bExecute := bReadIsSslEnabled,
ConnectionHandle := depragSmartConnection.ConnectionHandle,
Output => IsSslEnabled);
IF hrIsSslEnabled <> S_FALSE THEN
bReadIsSslEnabled := FALSE;
END_IF
hrIsSslEnabled := fbSmtpServerSettings.WriteIsSslEnabled(
bExecute := bWriteIsSslEnabled,
ConnectionHandle := depragSmartConnection.ConnectionHandle,
PointerToNodeValue := ADR(IsSslEnabled),
SizeOfNodeValue := SIZEOF(IsSslEnabled));
IF hrIsSslEnabled <> S_FALSE THEN
bWriteIsSslEnabled := FALSE;
END_IF
For examples and explanations regarding the calls of nodes via Siemens TIA Portal please refer to the sub-menu "Siemens TIA Portal" in section "Getting Started".