| Home | Browse by Category | OAuth | All functions |
If you already have an application that uses the old vuMail template, moving to vuMailKit is straightforward.
In most cases, your existing application logic can remain largely unchanged. The main work is replacing the old global extension template, entering the new template settings, and deciding whether you want to support OAuth and modern provider setup through the vuMailKit Email Setup Wizard.
Install vuMailKit and register the template in Clarion.
If you need the detailed setup steps, see:
Open your application in the Clarion IDE.
Then:
Still in Global Extensions:
At that point, the application has the new vuMailKit global extension, but it is not ready to run until the required template settings are entered and the application is compiled.
If you want to support Microsoft OAuth in the application:
Example:
'Microsoft-client-id-string'
If you want to support Google OAuth in the application:
Examples:
'Google-client-id-string'
'Google-secret-string'
If you do not need OAuth support, you can leave those options disabled.
Regardless of whether you plan to use OAuth, enter your vuMailKit developer license in the template settings.
Enter the license string inside single quotes.
Example:
'Your-license-string-goes-here'
This is the developer license you receive with your order.
The license value must be entered in the template field as a quoted Clarion string. The template-generated startup code passes that value to vuMailKitInitialize when the EXE starts.
If vuMailKit licensing is not initialized before setup, profile, autodetect, or send functions are called, those calls return -9001 and vuMailLastError reports a vuMailKit licensing/setup problem.
If the application is a Clarion multi-DLL application, add the vuMailKit global extension to the EXE app.
Do not add the global extension separately to each supporting DLL app. The EXE startup should initialize vuMailKit once for the process, after which the runtime DLL can be used by code reached from anywhere in the running program.
If you want users to use the new setup flow, use the Clarion Utility Template command, CTRL+U, to import the vuMailKit Email Setup Wizard into the EXE application.
The vuMailKit Email Setup Wizard is a major difference from older vuMail setup. It validates the entered email address, detects likely provider/server settings, handles OAuth authorization when OAuth is enabled and required, sends a test email, and saves the result into a reusable profile.
This means most users do not need to know server names, SMTP ports, or TLS settings.
From that point on, you have two practical paths.
If your application does not need OAuth and you do not need the vuMailKit Email Setup Wizard, you do not have to import or run the vuMailKit Email Setup Wizard at all.
In that case:
This is the simplest migration path.
If you want to support:
then use the Clarion Utility Template command, CTRL+U, to import the vuMailKit Email Setup Wizard, compile the EXE, and run it inside your application.
The vuMailKit Email Setup Wizard lets the end user enter an email address, validate it, detect provider/server settings, authenticate through OAuth where supported and enabled, send a test message, and save the managed profile for later use without writing OAuth flow code in the application.
If you do not run the vuMailKit Email Setup Wizard, the application will continue to use the values your program is already supplying through the existing code and legacy-compatible runtime behavior.
That means many older vuMail applications can move to vuMailKit and continue working without forcing an immediate workflow change for the user.
Once the user runs the vuMailKit Email Setup Wizard and saves a profile, vuMailKit begins using the managed-profile model for normal persistence.
That means:
If you still have copies of the old vuMail DLL in the application folder, delete them.
You do not want the old runtime files lingering in the application directory after migration.
The vuMailKit template automatically places a copy of vuMailKit.dll into the application folder at compile time.
Because vuMailKit now uses the flattened single-DLL deployment model for the Basic edition, that runtime deployment is simpler than older multi-file managed deployment approaches.
If you do not need OAuth, many applications can move from vuMail to vuMailKit with very little disruption.
If you do want OAuth and modern provider setup, add the template settings, use Clarion CTRL+U to import the vuMailKit Email Setup Wizard, compile, and then run the wizard to let the application transition into the newer managed-profile model.
| Home | Browse by Category | OAuth | All functions |