Sending attachments in deluge script

Sending attachments in deluge script

Hi, Team,

How can I send some files as attachments with the "send mail" deluge function? When not using the attachment, I can send the email without issues to the recipient. I've tried several ways to reference the files (which are task attachments, and I have their URLs). What is the right way to do it?
This is the code I'm using:
With this, I only receive the taskObj content without any file attached.

Thanks.

                  New to ADSelfService Plus?