Skip to content

`COMMAND_SYS.Mail` overloads that accept `from_user_name_`/`to_user_name_` don't support specifying a custom mail sender — which overload should be used instead when a specific sender identity needs to be set alongside an email attachment?

Answer

The username-based overload never supported a mail-sender parameter, even going back through Apps10 — for specifying a sender, use one of the sender_/from_/to_list_-based overloads instead (which take a CLOB for the message body rather than a plain string); one variant accepts a single CLOB attachment, and a separate variant accepts an attachment_arr for multiple attachments — pick whichever matches whether you need to send one attachment or several, since both support the sender parameter the username-based overload lacks.

← Browse Integrations and APIs questions