Function __global->clean_temporary_mail_attachments
Definitions
sources/files2.php
- Delete any attachment files from disk that were created as temporary files.We cannot do this after calls to the dispatch_mail function because the mail queue will need them - it has to be once the mail is finished with.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $attachments | ?array | No | No | required parameter | N/A | N/A | A list of attachments (each attachment being a map, absolute path=>filename) (null: none) |
Preview
Code (PHP)
/**
* Delete any attachment files from disk that were created as temporary files.We cannot do this after calls to the dispatch_mail function because the mail queue will need them - it has to be once the mail is finished with.
*
* @param ?array $attachments A list of attachments (each attachment being a map, absolute path=>filename) (null: none)
*/
function clean_temporary_mail_attachments(?array $attachments)
* Delete any attachment files from disk that were created as temporary files.We cannot do this after calls to the dispatch_mail function because the mail queue will need them - it has to be once the mail is finished with.
*
* @param ?array $attachments A list of attachments (each attachment being a map, absolute path=>filename) (null: none)
*/
function clean_temporary_mail_attachments(?array $attachments)
