So, I want to send an html-file, that is created from a .Rmd file to a certain email address using the send.mail()
function from the mailR package. However, instead of sending the file as a mail it only sends whatever I assign to body="example-file.html"
, so that the mail literally only says example-file.html
.
There is an automated script running in the backend, that is identical and yields the wanted result. However, if I execute it manually, it only sends a string as email again. Hence, I assume it has something to do with my installation (in RStudio Server 3.6.3.).
Any ideas what to do or what could be the cause?