fysan: Batch Send Filetypes via Outlook Email

Description Usage Arguments Examples

View source: R/fysan.R

Description

Uses RDCOMClient package. Will send email from default Outlook email address.

Uses RDCOMClient package. Will send email from default Outlook email address.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
fysan(
  batch = 3,
  interval = 1,
  fyle_location = ".",
  fyle_extension = NULL,
  fyle_exclusions = NULL,
  list_recursive = TRUE,
  list_full_names = TRUE,
  email_to,
  email_subject = "fysan subject",
  email_body = "fysan send",
  email_cc = "",
  email_bcc = "",
  max_bytes = 5e+07
)

fysan(
  batch = 3,
  interval = 1,
  fyle_location = ".",
  fyle_extension = NULL,
  fyle_exclusions = NULL,
  list_recursive = TRUE,
  list_full_names = TRUE,
  email_to,
  email_subject = "fysan subject",
  email_body = "fysan send",
  email_cc = "",
  email_bcc = "",
  max_bytes = 5e+07
)

Arguments

batch

How many attachments per email. Defaults to 3.

interval

How many seconds to wait between each email send. Defaults to 1. Can be handy to keep from overloading.

fyle_location

Location of directory to search. Will default to search recursively. Required. Must be the full path, not relative.

fyle_extension

The extension(s) you want to search for, e.g. c("txt", "R") will send files that end in .txt or .R

fyle_exclusions

Files with this string anywhere in the file name or location will not be sent. Optional.

list_recursive

Set to FALSE if you do not want to search through children of fyle_location. Generally keep TRUE.

list_full_names

List the full names of the location. Generally keep TRUE

email_to

Email address to send the files to

email_subject

Optional email subject

email_body

Optional email body

email_cc

Optional email cc

email_bcc

Optional email bcc

max_bytes

Maximum byte size. Emails with attachments exceeding this size will have the attachments split up. Those files will need to be glued together by TBD function.

Examples

1
2
3
4
5
6
7
8
fysan(batch = 3,
         email_to = "noone@nowhere.com",
         fyle_location = getwd(),
         fyle_extension = c("R", "md"))
fysan(batch = 3,
         email_to = "noone@nowhere.com",
         fyle_location = getwd(),
         fyle_extension = c("R", "md"))

harryahlas/fysan documentation built on Dec. 20, 2021, 2:51 p.m.