| Home | All functions | Legacy functions | Categories |
vuSmtpSetSecurity(*CSTRING InUser,*CSTRING InPassword,LONG InSecurityMode,LONG InUseSsl),SIGNED,PROC,PASCAL,RAW,NAME('vuSmtpSetSecurity')
Sets SMTP credentials and security flags used by vuMailKit send operations.
| 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). |
1: Success.MAP
MODULE('vuMail.dll')
vuSmtpSetSecurity(*CSTRING InUser,*CSTRING InPassword,LONG InSecurityMode,LONG InUseSsl),SIGNED,PROC,PASCAL,RAW,NAME('vuSmtpSetSecurity')
END
END
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
vuGlobalsSave() to persist.| Home | All functions | Legacy functions | Categories |