I want to send emails from R. This is what I have so far:
library(sendmailR) from <- \"eamil@example.com\" to <- \"email2@example.com\" subject <-
I found the simplest way in Ubuntu is to run the one liner Terminal command in R. No need for password.
try(system("mutt -s 'Run is complete.' youremail@anymail.com < /dev/null", intern = TRUE))
You will need to install mutt in terminal before this.