Open woldemarg opened 7 years ago
Almost a year on still have no solution for the problem. At least works the following tactics:
html <- read.csv("html_letter.csv",
encoding = "UTF-8",
stringsAsFactors = FALSE)
send.mail()
like this:
body = paste(
html$p1, # first paragraph from html_letter.csv
var1, # if needed
html$p2,
var2,
html$p3,
... ,
sep = ""
)
Here is a simple script for sending e-mail with a plain text in its body:
Everything works perfect if I run this script out of my RStudio. But when it is started out of bat-file via Rscript an e-mail get messy content:
Here is my session info: