Chilkat HOME ASP Visual Basic VB.NET C# Visual C++ C MFC Delphi FoxPro Java Perl PHP Python Ruby SQL Server VBScript
|
Extract Files from MIMEExtract files from a MIME message. Note: The example uses the ExtractPartsToFile method, which is available as a pre-release as of this date (20-May-2008). LOCAL loMime LOCAL lnSuccess LOCAL loSa LOCAL i LOCAL n loMime = CreateObject('Chilkat.Mime') lnSuccess = loMime.UnlockComponent("Anything for 30-day trial.") IF (lnSuccess = 0) THEN =MESSAGEBOX("Failed to unlock component") QUIT ENDIF * Load a MIME document from a file: * (.mht and .eml files contain MIME). lnSuccess = loMime.LoadMimeFile("mst.mht") IF (lnSuccess = 0) THEN =MESSAGEBOX(loMime.LastErrorText) QUIT ENDIF loSa = loMime.ExtractPartsToFiles("c:/temp/mimeParts") IF (loSa = NULL ) THEN ? loMime.LastErrorText QUIT ENDIF n = loSa.Count * Display the filepaths of the files created: FOR i = 0 TO n - 1 ? loSa.GetString(i) NEXT |
Need a specific example? Send a request to support@chilkatsoft.com
© 2000-2007 Chilkat Software, Inc. All Rights Reserved.
Mail Component · .NET Email Component · ASP Mail Component · XML Parser