Delphi Examples

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

Delphi Examples

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

More Examples...
Amazon S3
Byte Array
FileAccess
RSS
Atom
Self-Extractor
Service
PPMD
Deflate
Bzip2
LZW

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;

 

 

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

Mail Component · .NET Email Component · XML Parser