GetSMTPEmailHeader (open)

Create a basic email header

Syntax

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

RECORD ARRAY FUNCTION GetSMTPEmailHeader(STRING mailfrom, STRING subject, STRING hostname)

Parameters

STRING mailfrom

Name and email address of email sender

STRING subject

Subject of the email to create

STRING hostname

Host generating this message (used for message-id generation). This should be left empty when unknown, it will be then be automatically generated.

Return value

RECORD ARRAY

A record array containing the basic header fields