Chilkat Examples

ChilkatHOMEAndroid™Classic ASPCC++C#Mono C#.NET Core C#C# UWP/WinRTDataFlexDelphi ActiveXDelphi DLLVisual FoxProJavaLianjaMFCObjective-CPerlPHP ActiveXPHP ExtensionPowerBuilderPowerShellPureBasicCkPythonChilkat2-PythonRubySQL ServerSwift 2Swift 3/4TclUnicode CUnicode C++Visual Basic 6.0VB.NETVB.NET UWP/WinRTVBScriptXojo PluginNode.jsExcelGo

Ruby Examples

ASN.1
Amazon S3
Amazon S3 (new)
Amazon SES
Amazon SNS
Amazon SQS
Async
Azure Cloud Storage
Azure Service Bus
Base64
Bounced Email
Box
CSR
CSV
Certificates
Compression
DKIM / DomainKey
DSA
Diffie-Hellman
Digital Signatures
Dropbox
Dynamics CRM
ECC
Email Object
Encryption
FTP
Facebook
FileAccess
Firebase
GMail REST API
GeoOp
Google APIs
Google Calendar
Google Cloud Storage
Google Drive
Google Sheets
Gzip
HTML-to-XML/Text
HTTP
HTTP Misc
IMAP
JSON
JSON Web Encryption (JWE)
JSON Web Signatures (JWS)
JSON Web Token (JWT)

Java KeyStore (JKS)
Jira
MHT / HTML Email
MIME
Microsoft Graph
NTLM
OAuth1
OAuth2
OneDrive
OpenSSL
Outlook
PEM
PFX/P12
POP3
PRNG
PayPal
Peoplevox
QuickBooks
REST
REST Misc
RSA Encryption
SCP
SFTP
SMTP
SSH
SSH Key
SSH Tunnel
SharePoint
Shopify
Socket/SSL/TLS
Spider
Stream
Stripe
SugarCRM
Tar Archive
Twitter
Upload
VoiceBase
Walmart
WebSocket
XAdES
XML
XML Digital Signatures
XMP
Xero
Zip
curl
eBay

 

 

 

(Ruby) Demonstrates UnlockComponent for MailMan

Demonstrates how to unlock the Chilkat MailMan functionality. The UnlockComponent method should be called once at the beginning of the program. Once unlocked, all subsequent MailMan objects are created in the unlocked state. There is no need to call UnlockComponent for every instance of a Chilkat MailMan object.

The object that called UnlockComponent may be discarded (deleted, deallocated, etc.). It does not need to remain in existence for subsequent objects to be already unlocked when created.

Chilkat Ruby Downloads

Ruby Library for Linux and MAC OS X

require 'chilkat'

mailman = Chilkat::CkMailMan.new()

#  If a license is purchased, replace "Anything for 30-day trial" with the purchased unlock code.
success = mailman.UnlockComponent("Anything for 30-day trial")
if (success != true)
    print mailman.lastErrorText() + "\n";
    print "unlock failed." + "\n";
    exit
end

#  Starting in Chilkat v9.5.0.62, the UnlockStatus method was added to the Global object.
#  It indicates the unlocked status for the last call to UnlockBundle,
#  or any UnlockComponent call. The possible values are:
# 
#     0 -- Not unlocked. (Still in locked state.)
#     1 -- Unlocked with in fully-functional trial mode.
#     2 -- Unlocked using a valid purchased unlock code.

#  A program can check by instantiating the Global object and then examining
#  the UnlockStatus
glob = Chilkat::CkGlobal.new()
if (glob.get_UnlockStatus() == 2)
    print "Unlocked using a purchased unlock code." + "\n";
else
    print "Unlocked using an arbitrary string for trial mode." + "\n";
end


 

© 2000-2019 Chilkat Software, Inc. All Rights Reserved.