| Home | All functions | Legacy functions | Categories |
Prototype: vuMailLastError(), CSTRING, PROC, PASCAL, RAW, NAME(‘vuMailLastError’)
This legacy function is declared as returning CSTRING in Clarion to preserve original vuMail template behavior. Under the hood, the export returns a pointer to a null-terminated C string buffer, and Clarion consumes it directly as text, as shown in the examples below.
Gets the current last-error text using the original vuMail compatibility behavior.
ROUTINE:Test_vuMailLastError ROUTINE
DATA
RC LONG
CODE
RC = vuTestSetLastError('This is a forced test error string from Clarion')
STOP('RC=' & RC & ' vuMailLastError()=' & vuMailLastError())
When a licensing gate fails, vuMailLastError() is populated even though no SMTP send was attempted. The message begins with vuMailKit licensing failure and explicitly states that the problem is not an SMTP, OAuth, Gmail, password, or mail-server authentication failure.
Current licensing return codes:
| Value | Meaning |
|---|---|
| -9001 | vuMailKit licensing was not initialized. |
| -9002 | License string is invalid or initialization failed. |
| -9003 | Current license tier does not allow the requested feature. |
Startup/deployment-folder conflict code:
| Value | Meaning |
|---|---|
| -451 | vuMailKit detected conflicting .NET mail/runtime files in the application folder. This is an application-folder cleanup issue, not a license, SMTP, OAuth, Gmail, password, or mail-server authentication failure. |
This is especially important for hand-coded integrations that call vuSendMail() without registering the vuMailKit template/global extension or without calling vuMailKitInitialize(LicenseString) at EXE startup.
| Home | All functions | Legacy functions | Categories |