SendMIMEMessageTo (open)

Encode a message in MIME format

Syntax

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

MACRO SendMIMEMessageTo(RECORD ARRAY headers, RECORD toppart, MACRO PTR receivefunction, RECORD options)

Parameters

RECORD ARRAY headers
RECORD toppart

Top MIME message part

MACRO PTR receivefunction

Function that receives the MIME headers line by line, without a \r\n termination

RECORD options

Options

rawheaders

If true, keep the headers as is (don't try to rewrite To, Subject, etc...)