SEND_MAIL doesn't send attachment when a LOGIN object without password is used
search cancel

SEND_MAIL doesn't send attachment when a LOGIN object without password is used

book

Article ID: 428845

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

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:

  • started as root
  • or the ucxj??? owned by root and setUID set
  • ANONYMOUS_JOB=Y
  • login_check=no

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.

Cause

DE182438, DE177161

Resolution

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