Visual Basic Examples

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

VB Examples

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

More Examples...
Amazon S3
Email Object
DKIM / DomainKey
NTLM
DH Key Exchange
DSA
FileAccess
RSS
Atom
Self-Extractor
Service
Bzip2
PPMD
Deflate
LZW


VB Strings
VB Byte Array

 

 

 

 

 

 

 

Download Email into MIME Strings and Save as .EML Files

Download Chilkat Email ActiveX

Visual Basic 6.0 example to download email into MIME strings and save to .eml files.

    ' This example downloads email from a POP3 server directly into MIME strings.
    ' If you are downloading and saving digitally signed email to .eml files,
    ' they must be downloaded in this way.  Otherwise the digital signature
    ' will not be verified by Outlook or Thunderbird when opening the .eml.
    
    Dim mailman As New ChilkatMailMan2
    mailman.UnlockComponent "Anything for 30-day trial"

    ' Set our mail host and login
    mailman.MailHost = "mail.chilkatsoft.com"
    mailman.PopUsername = "myLogin"
    mailman.PopPassword = "myPassword"
    
    ' Get the UIDLs for the email on the POP3 server (in our user account)
    Dim uidls As CkStringArray
    Set uidls = mailman.GetUidls()
    
    Dim mimeMessages As CkStringArray
    Set mimeMessages = mailman.FetchMultipleMime(uidls)
    
    For i = 0 To mimeMessages.Count - 1
        mimeMessages.SaveNthToFile i, "myEml/mime_" & Str(i) & ".eml"
    Next
    
    MsgBox "Finished!"

 

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