I have a site, where only eployees of a certain company may register and I need to check if users, that register to my sites are eligible to do so. So I check their email address: If they have an email address at the said company, they are eligible, and the registration goes as usual. If they use a different email address, I display a file field, where they are supposed to upload a document, that proves, that they are employees for the company in question.
So far, this works fine, but I also need to send an email with the uploaded file attached to it to an admin, and after sending the email, I need the file to be deleted.
For sending the file, I tried to configure an auto action, which didn't work (maybe I do it wrong?) and for deleting the file after sending it, i hav no clue on how to do this. Does anyone have tips on how I could go about this?