E-mail attachment from private files

Created on 27 February 2024, 9 months ago
Updated 28 February 2024, 9 months ago

Hello,

thank you for this fantastic module.

I'm trying to send e-mail with Attachment from the Private files, but I'm getting the message:

Message: Attachment not found: pdf-example.pdf

It's not possible to attach files form this location, or maybe I'm setting something wrong?
From the public folders the attach work as expected.

Any advice?

Thank you

πŸ’¬ Support request
Status

Active

Version

3.0

Component

Miscellaneous

Created by

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

Comments & Activities

  • Issue created by @hrdesign.web
  • πŸ‡ΊπŸ‡ΈUnited States zengenuity

    That error message means the file does not exist at the path you've provided. You need to have "private://" in front of the file name, probably.

    Note that you may also need to allow attachments from the private file system in the Easy Email settings. That's not allowed by default. (though your error message indicates this isn't your current problem) Ideally, you wouldn't allow the entire private file system, though you can. It would be better if the files for attaching were in a subdirectory and you allowed that subdirectory.

  • "Ideally, you wouldn't allow the entire private file system, though you can. It would be better if the files for attaching were in a subdirectory and you allowed that subdirectory."

    Correct, this is what I'm planning to do.

    But problem is that I cant get the Attachment on the mail, and already tried with all the possible paths, relative absolute etc.

Production build 0.71.5 2024