FoxPro Examples

ChilkatHOMEAndroid™ASPVisual BasicVB.NETC#iOS (IPhone)Objective-CC++CMFCDelphiFoxProJavaPerl
PHP ExtensionPHP ActiveXPythonPowerShellRubySQL ServerVBScript

Visual FoxPro Examples

Bounced Mail
Bz2
Character Encoding
CSV
Digital Certificates
Digital Signatures
Email
Email Object
FTP
HTML Conversion
HTTP
IMAP
Encryption
MHT / HTML Email
POP3
RSA
S/MIME
Socket
Spider
SFTP
SMTP
SSH
SSH Key
SSH Tunnel
String
Tar
Upload
XML
XMP
Zip Compression
Self-Extractor

More Examples...
Amazon S3
DKIM / DomainKey
NTLM
RSS
Atom
Byte Array
Service
PPMD
Deflate
DH Key Exchange
DSA
FileAccess
Bzip2
LZW

 

Non-Chilkat Links
Text and String Handling

Add S/MIME Signature using PFX

Add a digital signature to a MIME message using the certificate + private key from a PFX file.

Download Chilkat MIME ActiveX

LOCAL loMime
LOCAL lnSuccess
LOCAL loCert
LOCAL lcPfxFilepath
LOCAL lcPfxPassword

loMime = CreateObject('Chilkat.Mime')

lnSuccess = loMime.UnlockComponent("Anything for 30-day trial")
IF (lnSuccess = 0) THEN
    ? loMime.LastErrorText
    QUIT
ENDIF

*  Load a PFX file into a certificate object.
loCert = CreateObject('Chilkat.Cert')

lcPfxFilepath = "pfxFiles/something.pfx"

lcPfxPassword = "secret"
lnSuccess = loCert.LoadPfxFile(lcPfxFilepath,lcPfxPassword)
IF (lnSuccess = 0) THEN
    ? loCert.LastErrorText
    QUIT
ENDIF

loMime.SetBodyFromPlainText("This is the plain-text MIME body.")

loMime.Charset = "utf-8"
loMime.Encoding = "quoted-printable"

*  Sign the MIME:
lnSuccess = loMime.AddDetachedSignature(loCert)
IF (lnSuccess = 0) THEN
    ? loMime.LastErrorText
    QUIT
ENDIF

*  Save the S/MIME to a file.
lnSuccess = loMime.SaveMime("c:/temp/signedMime.txt")
IF (lnSuccess = 0) THEN
    ? loMime.LastErrorText
    QUIT
ENDIF

=MESSAGEBOX("success!")

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

Mail Component · .NET Email Component · ASP Mail Component · XML Parser