KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Disabling security calls when converting old SMTP commands
PRODUCT: 4D | VERSION: 20 | PLATFORM: Mac & Win
Published On: May 6, 2024

Since the integration of new internet commands in V19, older email commands such as SMTP_New have been deprecated in favor of using SMTPTransporter. When converting your old code to the new commands, you may get some runtime errors such as “A non-blocking socket operation could not be completed immediately.” This may be because the older commands allowed for unsecure connections, while the new SMTP transporter has maximum security.

To get around this, you can disable the security call by enabling the following property before creating the SMTPTransporter object:

$transporter.acceptUnsecureconnection():= True

This will allow 4D to establish an unencrypted connection when excrypted connection is not possible. By default, this value is set to false.