Jump to content

[solved] WireMail send attachment-files, uploaded to a pagefileSecure field


Recommended Posts

Hi everyone,

I tried a lot, but I don´t know if I´m on the right track. I hope, someone can help.

I store orders in pages. Every order has a FileField "invoice_pdf".
To prevent public access to the PDF, the page template has a pagefileSecure setting and no viewing rights for guest role.
The files are then saved unter /site/assets/files/-XXXX/ -> the - prefix is part of the pagefileSecure setting, I guess.

Now I want to send the PDF as mail attachment to my customer.
But the PDF->url / PDF->httpURL() contains the path without the - prefix.
The mail is sent without attachment. I guess because the real path doesn´t countain a file.

Is it possible, to send attachment-files, uploaded to a pagefileSecure field?

Thanks a lot for your help!

Link to comment
Share on other sites

  • Jochen Fritsch changed the title to [solved] WireMail send attachment-files, uploaded to a pagefileSecure field

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...