I'm trying to set up the mailR package to send me email notifications when my scripts have finished running. So far, I've installed and loaded the package, installed the latest version of Java that matches my architecture and ran the following code:
email <- send.mail(from = sender, to = recipients, subject = "Test", body = "This is a test",
smtp = list(host.name = "smtp.mail.com", port = 587, user.name = sender,
passwd = pw), authenticate = T, send = F)
Where sender, recipients and pw are predefined character vectors.
This works fine and produces a Java object. However when I go to send the email with
email$send()
I get the following error message
Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl, :
java.lang.NoClassDefFoundError: javax/activation/DataHandler
I know nothing about Java so have no idea how to interpret this and fix it. Any help would be appreciated.