I have searched SO and well as google and cannot seem to find a solution to my problem. I am trying to send a HTML formatted email within R using sendmailR package. The plai
I prefer to use a specialized Mail agent for this type of task than using an R package. You can for example use Mutt. Available for linux and windows.
Here I am using option -e to send a command:
writeLines(message,
p<-pipe(paste('mutt -e ','"set content_type=text/html"',
from,to,' -s ', subject))
close(p)