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

Access Attached Message (Embedded Email)

Download Chilkat Email ActiveX

How to access an email embedded within another email (i.e. an attached message).

LOCAL loEmail
LOCAL lnSuccess
LOCAL lnNumAttached
LOCAL loEmail2

loEmail = CreateObject('Chilkat.Email2')

*  Load an email from a .eml

lnSuccess = loEmail.LoadEml("embeddedEmail.eml")
IF (lnSuccess <> 1) THEN
    =MESSAGEBOX(loEmail.LastErrorText)
    QUIT
ENDIF

*  Display how many attached emails are embedded within
*  this one:

lnNumAttached = loEmail.NumAttachedMessages
=MESSAGEBOX(STR(lnNumAttached))

*  Get the 1st attached message.

loEmail2 = loEmail.GetAttachedMessage(0)
IF (NOT (loEmail2 = NULL )) THEN

    *  Display the subject, From, and a header field...
    ? loEmail2.Subject
    ? loEmail2.From
    ? loEmail2.GetHeaderField("X-SOMETHING")
ENDIF


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

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