Chilkat
HOME
Android™
ASP
Visual Basic
VB.NET
C#
iOS (IPhone)
Objective-C
C++
C
MFC
Delphi
FoxPro
Java
Perl
PHP Extension
PHP ActiveX
Python
PowerShell
Ruby
SQL Server
VBScript
Download Email into MIME Strings and Save as .EML Files
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.