Multiple attachments

Created on 27 February 2025, 2 months ago

I am trying to send multiple files in email attachment but its sending out the first file and the rest are getting skipped.
I am using the token: Attachment type with delta 0

In log messages I get this error:
Attachment not found: sites/default/files/attachments/file1.pdf, /sites/default/files/attachments/file2.docx

File system: Public
Allowed attachment paths: public://attachments/*
Token of Attachment files in template: [easy_email:ReferencedField:entity:attachmentFilename with delta 0, selected through token browser.

What am i missing or doing wrong?

💬 Support request
Status

Active

Version

3.0

Component

Documentation

Created by

🇳🇱Netherlands asman_amin

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @asman_amin
  • 🇳🇱Netherlands asman_amin

    UPDATE!

    In the email template I added file tokens seperated by comma and it started to send attachments.

    Attachment:
    [easy_email:field_testmail:entity:field_attachment:0], [easy_email:field_testmail:entity:field_attachment:1], [easy_email:field_testmail:entity:field_attachment:2]

    With these tokens only three attachments can be sent. Is there any other workaround?

    Thank you.

Production build 0.71.5 2024