I am trying to sending a mail from R using mailR
package but getting the error.
My code :
subject <- "Montly Report"
today<-Sys.Date()
fileName <- sprintf('./DailyReports/LaunchDaily_%s.html', format(today, format = "%d-%m-%y"))
body <- "Testing Document"
send.mail(from = from,
to = to,
cc = cc,
bcc = bcc,
subject = subject,
attach.files = fileName,
html = T,
inline = T,
body = body,
smtp = list(host.name = "smtp.gmail.com", port = 465,
user.name = "email id",
passwd = "password", ssl = TRUE),
authenticate = T,
send = T
)
and error :
Error in .jnew("org.apache.commons.mail.ImageHtmlEmail") :
java.lang.NoClassDefFoundError: javax/activation/DataSource
i have tried to search in google and github also but not getting the fix to the prob.
Note: : Link i have gone through the Link and tried also the code but not worked for me.
System OS : Ubuntu 18.04, R Studio : 1.1.456