This package uses blastula, Microsoft365R and htmltools to streamline the process of sending emails, particularly when the body of the message is the output of some data-wrangling.
Examples include:
- Send individualised emails to contacts stored in a spreadsheet (e.g. tutees meetings);
- Send reminders for different issues (e.g. non compliance to mandatory training).
The package contains two functions:
write_email
: this takes as input a file (it could be a quarto or an Rmarkdown file, with any amount of mark-down formatting) and pre-processes it through theblastula
package to create the html-formatted body of the email.send_email
: this uses the email message created bywrite_email
andMicrosoft365R
to send it through the UCL account. The user is authenticated through theAzureR
package and can specify the subject of the email, recipients and even add attachments.