vuSetMailServerOAuth()
Clarion prototype
Prototype: vuSetMailServerOAuth(*CSTRING InServer, LONG InPort), SIGNED, PROC, PASCAL, RAW, NAME(‘vuSetMailServerOAuth’)
Purpose
Stores OAuth-specific SMTP host/port settings in the active runtime configuration.
Parameters
| Parameter |
Type |
Description |
| InServer |
*CSTRING |
OAuth SMTP server host name. |
| InPort |
LONG |
OAuth SMTP server port. |
Return value / error codes
| Value |
Meaning |
| 1 |
Settings saved in runtime state. |
Example (Clarion)
rc LONG
server CSTRING(256)
port LONG
server = 'smtp.office365.com'
port = 587
rc = vuSetMailServerOAuth(server, port)
MESSAGE('vuSetMailServerOAuth rc=' & rc)
Notes
- The function attempts to persist configuration via globals save; return value remains 1.
- Use with OAuth auth mode (vuSmtpSetAuthMode(1)) when routing SMTP sends through OAuth settings.