The SetSubject function sets the subject of the mail.
CALL ui.Interface.frontCall("WinMail","SetSubject", [ id, subject ], [ result ] )