CreateMIMEMailingTopPart (open)

Create a top part for a MIME mailing

Syntax

LOADLIB "wh::internet/mime.whlib";

RECORD FUNCTION CreateMIMEMailingTopPart(BLOB plainmail, BLOB htmlmail, RECORD ARRAY mail_images)

Parameters

BLOB plainmail

Plain/text part

BLOB htmlmail

HTML part

RECORD ARRAY mail_images

Embedded objects

contentid

Content id (without the 'cid:' namespace prefix)

contenttype

Content type

data

Object data

filename

Original filename

Return value

RECORD

A top-level MIME part for an embedded mailing. Ids 2 up to 6+length(embedded) will be used as the IDs in the toppart record and its contained objects