Zip Component, Email Component, Encryption Component ActiveX Control for Zip Compression .NET Components for ASP.NET
ActiveX and .NET Components for Zip Compression, Encryption, Email, XML, S/MIME, HTML Email, Character Encoding, Digital Certificates, FTP, and more ASP Email ActiveX Component


Index of Chilkat Blog Posts

January 4, 2008

Attached Email Messages

A Chilkat email object can have attachments, related items, and attached messages. Attachments are file attachments that do not participate in the visual rendering of the email’s body. Related items are those images, style sheets, etc, that are embedded within the HTML body of an email and whose purpose is solely to be part of the visual rendering of the HTML. Attached messages are complete emails attached using the message/rfc822 content type.

Properties and methods for getting attachments include:

NumAttachments
SaveAttachedFile
SaveAllAttachments
SetAttachmentFilename
GetAttachmentData
GetAttachmentString
GetAttachmentStringCRLF
GetAttachmentSize
GetAttachmentHeader
GetAttachmentContentID
GetAttachmentContentType
GetAttachmentFilename

Properties and methods for related items include:

NumRelatedItems
GetRelatedContentID
GetRelatedContentType
GetRelatedData
GetRelatedFilename
GetRelatedString
GetRelatedStringCrLf
SaveRelatedItem

Properties and methods for attached messages include:

NumAttachedMessages
GetAttachedMessage
GetAttachedMessageFilename

An attached message contains the complete MIME source of another email (typically the original message in a reply or forward) embedded in a message/rfc822 MIME part. Some email clients construct forwards and replies by encapsulating the original email in a message/rfc822, some email clients do not. For example, Mozilla Thunderbird does not use message/rfc822 when constructing a reply or forward, whereas Yahoo Mail does. I ran a simple test to capture the MIME of a forwarded message from both email clients. You can examine it here and see the difference. (Note: I use a "chilkat_software@yahoo.com" email address, which is not checked. Please don’t send email to that address.)

This email was constructed by Yahoo Mail, and uses message/rfc822:
The embedded email is shown in boldface.

Return-Path: <chilkat_software@yahoo.com>
Delivered-To: matt@chilkatsoft.com
Received: (qmail 15363 invoked from network);
	 4 Jan 2008 13:53:02 -0000
X-Spam-DCC: xinternal: xmail01 1323;
	 Body=1 Fuz1=1 Fuz2=1
X-Spam-Checker-Version: SpamAssassin 3.2.1 (2007-05-02) onxmail01.myhosting.com
X-Spam-Level:
X-Spam-Status: No, score=-2.6 hits=-2.6 required=5.0 tests=BAYES_00,DKIM_POLICY_SIGNSOME,HTML_MESSAGE autolearn=ham version=3.2.1
X-Spam-Pyzor:
Received: from unknown (HELO web35311.mail.mud.yahoo.com) ([66.163.179.105])         (envelope-sender <chilkat_software@yahoo.com>)         by xmail01.myhosting.com (qmail-ldap-1.03) with SMTP         for <matt@chilkatsoft.com>;
	 4 Jan 2008 13:53:01 -0000
Received: (qmail 27479 invoked by uid 60001);
	 4 Jan 2008 13:53:01 -0000
DomainKey-Signature: a=rsa-sha1;
	 q=dns; c=nofws; s=s1024;
	 d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID;
	 b=k+Pk4UimATYnfEzLXkTpBr+RsDt08Dx1X5v0+WxbOU5Po3fI3Tlj2Ql8JkyFyW74pSAQ5PgUroclKlwpapJ0JRhPvBS5HQbqtQE6XoB0/3+1vsiv9aGXNB9+Y6mzf/tTaeWYj3igjf4GP0OkCLBwvmnOnVnUD6dbbnRD9/qXTvY=;
X-YMail-OSG: OKZho5AVM1nN4RUFIwqhi1Km_oCwKtEJAVqHiqtzQwsl.c1XI6xhFIFI9.uTGjOlqJEDwgb9ckn_LNTr9TTWvEqVSNQlO_kHFoqRQeovn2G3iz3hDjm41qcsAqAD5A--
Received: from [67.173.123.150] by web35311.mail.mud.yahoo.com via HTTP;
	 Fri, 04 Jan 2008 05:53:00 PST
Date: Fri, 4 Jan 2008 05:53:00 -0800 (PST)
From: Matthew Fausey <chilkat_software@yahoo.com>
Subject: Fwd: test
To: matt@chilkatsoft.com
Message-ID: <993437.27064.qm@web35311.mail.mud.yahoo.com>
X-Antivirus: AVG for E-mail 7.5.516 [269.17.13/1205]
Mime-Version: 1.0
Content-Type: multipart/mixed;
	 boundary="0-500151788-1199454780=:27064"
X-UIDL: 1199454782.15367.xmail01,S=3966
	
This is a multi-part message in MIME format.
	
--0-500151788-1199454780=:27064
Content-Type: multipart/alternative;
	 boundary="0-1588643139-1199454780=:27064"
	
This is a multi-part message in MIME format.
	
--0-1588643139-1199454780=:27064
Content-Type: text/plain;
	 charset=iso-8859-1
Content-Transfer-Encoding: 8bit
	
This is the forwarded message
	
Note: forwarded message attached.
	
---------------------------------
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.
--0-1588643139-1199454780=:27064
Content-Type: text/html;
	 charset=iso-8859-1
Content-Transfer-Encoding: 8bit
	
<html><head><META http-equiv="Content-Type" content="text/html;charset=iso-8859-1"></head><body>This is the forwarded message<br><br>Note: forwarded message attached.<p> 
      <hr size=1>Looking for last minute shopping deals? <a href="http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsearch/category.php?category=shopping">
Find them fast with Yahoo! Search.</a></body></html>
--0-1588643139-1199454780=:27064--
	
--0-500151788-1199454780=:27064
<strong>Content-Type: message/rfc822
	
X-Apparently-To: chilkat_software@yahoo.com via 66.163.179.102;
	 Fri, 04 Jan 2008 05:50:50 -0800
X-Originating-IP: [168.144.250.170]
Authentication-Results: mta407.mail.mud.yahoo.com  from=chilkatsoft.com;
	 domainkeys=neutral (no sig)
Received: from 168.144.250.170  (EHLO xsmtp07.mail2web.com) (168.144.250.170) by mta407.mail.mud.yahoo.com with SMTP;
	 Fri, 04 Jan 2008 05:50:50 -0800
Received: from [10.5.2.15] (helo=xmail05.myhosting.com)by xsmtp07.mail2web.com with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32)(Exim 4.63)(envelope-from <admin@chilkatsoft.com>)id 1JAmwj-0007yS-OPfor chilkat_software@yahoo.com;
	 Fri, 04 Jan 2008 08:50:50 -0500
Received: (qmail 7460 invoked from network);
	 4 Jan 2008 13:50:49 -0000
Received: from unknown (HELO [192.168.1.103]) (Authenticated-user:_admin@chilkatsoft.com@[67.173.123.150])         (envelope-sender <admin@chilkatsoft.com>)         by xmail05.myhosting.com (qmail-ldap-1.03) with ESMTPA         for <chilkat_software@yahoo.com>;
	 4 Jan 2008 13:50:48 -0000
Date: Fri, 04 Jan 2008 07:48:44 -0600
From: Chilkat Software <admin@chilkatsoft.com>
User-Agent: Thunderbird 2.0.0.9 (Windows/20071031)
MIME-Version: 1.0
To: chilkat_software@yahoo.com
Subject: test
Content-Type: text/plain;
	 charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
	
test
</strong>
–0-500151788-1199454780=:27064
Content-Type: text/plain;
	 x-avg=cert; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Content-Description: "AVG certification"
	
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.17.13/1205 - Release Date: 12/31/=
2007 3:32 PM
	
–0-500151788-1199454780=:27064–

This email was constructed by Mozilla Thunderbird, and does not use message/rfc822:
The original email is appended to the plain-text body with an ad-hoc string ("——– Original Message ——–") to allow viewers to visually see the original email. The "——– Original Message ——–" is not part of the MIME structure.

Return-Path: <admin@chilkatsoft.com>
Delivered-To: matt@chilkatsoft.com
Received: (qmail 19309 invoked from network);
	 4 Jan 2008 14:00:37 -0000
Received: from unknown (HELO [192.168.1.103]) (Authenticated-user:_admin@chilkatsoft.com@[67.173.123.150])         (envelope-sender <admin@chilkatsoft.com>)         by xmail07.myhosting.com (qmail-ldap-1.03) with ESMTPA         for <matt@chilkatsoft.com>;
	 4 Jan 2008 14:00:37 -0000
Message-ID: <477E3B88.6080806@chilkatsoft.com>
Date: Fri, 04 Jan 2008 07:58:32 -0600
From: Chilkat Software <admin@chilkatsoft.com>
User-Agent: Thunderbird 2.0.0.9 (Windows/20071031)
To: Matt <matt@chilkatsoft.com>
Subject: [Fwd: test]
X-Antivirus: AVG for E-mail 7.5.516 [269.17.13/1205]
Mime-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	 charset=ISO-8859-1; format=flowed
X-UIDL: 1199455237.19316.xmail07,S=1006
	
This is the forwarded message
	
<strong>——– Original Message ——–
Subject: 	test
Date: 	Fri, 04 Jan 2008 07:57:07 -0600
From: 	Chilkat Software <admin@chilkatsoft.com>
To: 	Reference Feedback <support@chilkatsoft.com>
	
test
	
</strong>
	
–
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.17.13/1205 - Release Date: 12/31/2007 3:32 PM


Privacy Statement. Copyright 2000-2011 Chilkat Software, Inc. All rights reserved.
Send feedback to support@chilkatsoft.com

Components for Microsoft Windows XP, 2000, 2003 Server, Vista, Windows 7, and Windows 95/98/NT4.