| Home | All functions | Legacy functions | Categories |
vuSmtpGetSecurity(*CSTRING OutUser,*CSTRING OutPassword,*LONG OutSecurityMode,*LONG OutUseSsl),SIGNED,PROC,PASCAL,RAW,NAME('vuSmtpGetSecurity')
Reads SMTP credentials and security flags from vuMailKit runtime globals.
| 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). |
1: Success.MAP
MODULE('vuMail.dll')
vuSmtpGetSecurity(*CSTRING OutUser,*CSTRING OutPassword,*LONG OutSecurityMode,*LONG OutUseSsl),SIGNED,PROC,PASCAL,RAW,NAME('vuSmtpGetSecurity')
END
END
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
vuGlobalsLoad() first if needed.| Home | All functions | Legacy functions | Categories |