I am using CF 2021 version. And I’ve created and attached an excel file to the cfmailparam tag. After delivering the email successfully, I need to delete the excel created from the server.
<cfmailparam file="#theFile#" type="application/msexcel" disposition="attachment" filename="test.xls" remove="true">
The email is sending successfully while using remove attribute. But when I use,
<cffile action="delete" file="#theFile#">
the mail is not sending out. Is this because the file deleted before the mail delivery?