Why does email attachment fail on rescheduled rule? I have an action set component that takes a "date" param and does the following:


"Add Variable" saves a path string based on the date.
"Execute custom PHP code" saves some data to the path created above.
"Send HTML mail to all users of a role" sends an email with the above file attached.
"Schedule component evaluation" repeats the component at time +2 minutes and sends date parameter +2 minutes.


If I execute the component, the file is created and the email is sent with the attachment as intended. But when the rescheduled component executes again, the correct file is created on the server and the email is sent, but the attachment is not there.
The problem was that I needed to allow the cron user to "Send Arbitrary Files" in the Mime Mail permissions.