Saves the emails from a given mailItem DCOM object (from RDCOMClient) to a given folder. If no folder is specified, a temporary directory will be used. This function will return a vector of all file paths to which an attachment has been saved. The attachments will keep their file names as they are displayed in the email. Embedded images, such as those that are present in email signatures, will also be saved.
1 | save_attachments(email, target_dir = tempdir())
|
email |
A case-sensitive search query. |
target_dir |
The folder in which to save the attachments. If no folder is specified, a temporary directory will be used. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.