Delphi Examples

ChilkatHOMEASPVisual BasicVB.NETC#Visual C++CMFCDelphiFoxProJavaPerlPHPPythonRubySQL ServerVBScript

Delphi Examples

Bounced Mail
Character Encoding
Digital Certificates
Digital Signatures
Email
FTP
HTML-to-XML
HTTP
IMAP
Encryption
MHT / HTML Email
RSA Encryption
S/MIME
Socket
Spider
String
Tar
Upload
XML
XMP
Zip Compression

More Examples...
Byte Array
Email Object
POP3
SMTP
RSS
Atom
Self-Extractor
Service
PPMD
Deflate
DH Key Exchange
DSA

Unreleased...
Bzip2
LZW
Bz2
Icon

Type Conversion

 

Article: Understanding COM References in Delphi

Forwarded Emails may be Embedded

This is not a complete Delphi example -- it is only a fragment of Delphi code. The purpose is to make you aware that forwarded emails may have been constructed in such a way that the original email is present in an embedded email (i.e. as an rfc822/message sub-part in the MIME). You can use the NumAttachedMessages property to determine if any embedded (i.e. attached) emails are present. If so, each can be accessed by calling GetAttachedMessage(index). After you have the embedded email as an email object, you may do anything you desire with it -- such as saving all attachments to a subdirectory.

      // Does this email have any embedded emails?
      // If an email is forwarded, the original email may be present
      // as an embedded email.
      if (email.NumAttachedMessages > 0) then begin
        email2 := email.GetAttachedMessage(0);

        // Save the attachments to a directory:
        email2.SaveAllAttachments('myAttachmentsDir');
      end;

 

 

Need a specific example? Send a request to support@chilkatsoft.com

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

Mail Component · .NET Email Component · XML Parser