Question:
Is there a way to save the MIME attachments?
I know I can get the CID name (GetRelatedContentID) and the filename GetRelatedFilename()
but GetRelatedData and GetRelatedString() do not seem to return the contents of the mime attachment?
Answer:
The Chilkat email component considers related items to be separate from attachments. A related item is typically an image
or style sheet (css file) embedded within the HTML and is present for display purposes. Attachments are files attached to an email
that are not displayed within the HTML. The email component provides properties and methods for both:
- NumRelatedItems
- SaveRelatedItem
- GetRelatedData
- GetRelatedString
- GetRelatedStringCrLf
- GetRelatedFilename
- GetRelatedContentID
- GetRelatedContentType
- NumAttachments
- SaveAllAttachments
- SaveAttachedFile
- GetAttachmentData
- GetAttachmentString
- GetAttachmentStringCrLf
- GetAttachmentContentID
- GetAttachmentContentType
- GetAttachmentSize
- GetAttachmentHeader
- GetAttachmentFilename