docs

Home All functions Legacy functions Categories

vuSmtpSetSecurity()

Clarion prototype

Prototype: vuSmtpSetSecurity(*CSTRING InUser, *CSTRING InPassword, LONG InSecurityMode, LONG InUseSsl), SIGNED, PROC, PASCAL, RAW, NAME(‘vuSmtpSetSecurity’)

Purpose

Sets SMTP credentials and security flags used by vuMailKit send operations.

Parameters

Parameter Type Description
InUser *CSTRING SMTP login/user ID.
InPassword *CSTRING SMTP password.
InSecurityMode LONG Legacy SMTP security type value.
InUseSsl LONG SSL flag (0 off, non-zero on).

Return value / error codes

Value Meaning
1 Success.

Example (Clarion)

rc       LONG
userId   CSTRING(260)
passwd   CSTRING(260)
secType  LONG
useSSL   LONG

userId = 'user@example.com'
passwd = 'app-password'
secType = 1
useSSL = 1
rc = vuSmtpSetSecurity(userId, passwd, secType, useSSL)
IF rc <> 1
  MESSAGE('vuSmtpSetSecurity failed: ' & rc)
END

Notes

Home All functions Legacy functions Categories