我使用以下代码发送经过身份验证的电子邮件,如https://github.com/rpremraj/mailR中所述。
一切正常,但是一旦发送,就会压缩下面的Java对象消息,因为它不会通过批处理文件运行。
这可能吗?
[1]" Java-Object {org.apache.commons.mail.MultiPartEmail@6b09bb57}"
send.mail(from = "sender@gmail.com",
to = c("recipient1@gmail.com", "Recipient 2 <recipient2@gmail.com>"),
replyTo = c("Reply to someone else <someone.else@gmail.com>")
subject = "Subject of the email",
body = "Body of the email",
smtp = list(host.name = "smtp.gmail.com", port = 465, user.name = "gmail_username", passwd = "password", ssl = TRUE),
authenticate = TRUE,
send = TRUE)
答案 0 :(得分:0)
感谢LukaA !!
在invisible()中包裹send.mail(...)做了伎俩!