Send attachment and removing file

Send an email attachment without permanently storing the file.

Overview

The CF form uploads files to the server, but there is no built-in option to automatically delete them after emailing.
Add a PHP action after the email action to delete the file, or use a server cron job to periodically remove old uploaded files.

Answered
ChronoForms v6
fl flashfs 10 Apr, 2018
Is it possible to enable the Attach to email without Uploading the file? I mean, the Chronoforms itself would upload to a temp folder and just after the email it would remove the file created. Or do I have to create a PHP logic just to remove the file I just want to attach?
Gr GreyHead 10 Apr, 2018
Answer
Hi flashfs,

It is not possible to attach an email without uploading it to the server.

You can add a PHP action after the Email action to delete the file if you wish to.

Or you can house-keep using a Cron job on the server to delete any uploaded files more that x hours old.

Bob
This topic is locked and no more replies can be posted.