SetPriority

Set the priority level of a message.

SetPriority(Priority)

Parameters

Parameter Type Direction Description
Priority numeric In Value from 1 through 5, where 1 indicates the highest priority and 5 the lowest.

Return Values

Values returned in $status
Value Description
0 Operation succeeded.
-18 Memory allocation error.
<0 An error occurred

Description

trigger detail ; of SEND command button field
variables
    handle mailApiHandle
endvariables

; Create an instance handle of the UPOPMAIL API component
newinstance "UPOPMAIL", mailApiHandle

<snip>Log on to SMTP server</snip>

; Specify the mail header information
mailApiHandle->SetFrom(FROM.MESSAGE.DUMMY)
mailApiHandle->SetToList(TO.MESSAGE.DUMMY)
mailApiHandle->SetSubject(SUBJECT.MESSAGE.DUMMY)
mailApiHandle->SePriority("3")

<snip>Define message content, send message, clear memory, and log off SMTP server</snip>

end