docs

Home All functions Legacy functions Categories

vuSmtpGetSecurity()

Clarion prototype

Prototype: vuSmtpGetSecurity(*CSTRING OutUser, *CSTRING OutPassword, *LONG OutSecurityMode, *LONG OutUseSsl), SIGNED, PROC, PASCAL, RAW, NAME(‘vuSmtpGetSecurity’)

Purpose

Reads SMTP credentials and security flags from vuMailKit runtime globals.

Parameters

| Parameter | Type | Description | |—|—|—| | OutUser | *CSTRING | Output buffer receiving SMTP login/user ID. | | OutPassword | *CSTRING | Output buffer receiving SMTP password. | | OutSecurityMode | *LONG | Receives legacy SMTP security type value. | | OutUseSsl | *LONG | Receives 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

CLEAR(userId)
CLEAR(passwd)
secType = 0
useSSL = 0
rc = vuSmtpGetSecurity(userId, passwd, secType, useSSL)
IF rc = 1
  MESSAGE('User=' & userId & ' SecType=' & secType & ' SSL=' & useSSL)
ELSE
  MESSAGE('vuSmtpGetSecurity failed: ' & rc)
END

Notes

Home All functions Legacy functions Categories