Normally, it is possible to run jobs without setting the password in the LOGIN object when a Unix Agent is set up to run anonymous jobs:
This works for the SEND_MAIL command too, but it cannot access the attachment.
:set &hnd#=SEND-MAIL("<email>",,"<subject>","<message>","<attachement>","<AGENT>","<LOGIN>")
The following error is shown in AWI:
2/10/2026 12:17:34 PM U00050013 Error when reading attachment file '/home/<user>/attachment.txt' error code: 'canRead()==false', error description: 'Cannot read file'.
2/10/2026 12:17:34 PM U00012109 Script 'SCRI.SEND_MAIL' (RunID '0005184067') ended normally.
Note that the email is sent but without the attachment.
This worked in the v21 C-based and Java based Agents.
DE182438, DE177161
Solution:
Update to a fix version listed below or a newer version if available.
Fix version:
Component(s): Automation Engine
Automation.Engine 24.4.4 - Available
This release date may change. Please sign up for notifications to be updated when these releases are published following this knowledge article
https://knowledge.broadcom.com/external/article?articleNumber=142615