R script (mailR) all files from folder as attachment
I have a script to send an email with mailR. So far so good.
But when I want to add a folder as an attachment, then it won’t send the mail (the script is fine and there’s no error).
The name of the file in my folder change every week, so the attachment has to be the folder name and then it must send the file in it.