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:

file_1 = "https://sdpondemand.manageengine.eu/app/itdesk/api/v3/requests/16943000000860063/tasks/16943000000954382/_uploads/81005";
file_2 = "https://sdpondemand.manageengine.eu/app/itdesk/api/v3/requests/16943000000860063/tasks/16943000000954382/_uploads/81004";

sendmail
[
    from :zoho.adminuserid
    to :"my_email@my_domain"
    subject :"Task data"
    message :taskObj
    Attachments :file:file_1,file:file_2
]

With this, I only receive the taskObj content without any file attached.

Thanks.