AddAttachmentsToMail (open)

Add attachments to a mail record

Syntax

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

RECORD FUNCTION AddAttachmentsToMail(RECORD toppart, RECORD ARRAY attachments)

Parameters

RECORD toppart

Top-level part of the MIME message to add the attachments to

RECORD ARRAY attachments

record array with the attachments (STRING name, STRING data, STRING contenttype)

Return value

RECORD

A record of the new Top-level MIME part