Helpers for sending a file via email
Arguments
- filename
filename to write
- name
name of the file to use in the email. Defaults to the name of the table or the inputted filename. A timestamp and extension will be appended and passed on to send_email as the name of
attachments
.- subject
character subject of the email
- ...
Arguments passed on to
send_email
,write_xlsx
,send_email
,send_file
emails
email addresses (first will be sender)
smtp
named list, should contain
hostname
and (optionally)port
, which defaults to 25. Additional elements will get merged with...
and passed to curl, see curl::curl_options for more details.body
html of message or a list containing sendmailR::mime_part objects.
engine
One of:
"internal"
for the internal smtp transport (default)."curl"
for the use of curl for transport. Enable if you need STARTTLS/SSL and/or SMTP authentication. Seecurl::send_mail
."debug"
sendmail returns a RFC2822 formatted email message without sending it.
group
character name of column to be used for grouping/banding the data. Band color will change when column value changes.
currency
character vector of column to be used for grouping/banding the data. Band color will change when column value changes.
- table
data.table to send
- report
report
object- report_filename
character(1)
name of the field that contains the filename
Functions
send_xlsx()
: Simple wrapper for send_file and write_xlsxoutput(email_report)
: report definition for sending a file by email