0

我正在使用下面的代码发送经过身份验证的电子邮件,如https://github.com/rpremraj/mailR中所述。

一切正常,但希望在发送后抑制下面的 Java 对象消息,因为它不会通过批处理文件运行。

这可能吗?

[1] “Java 对象{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)
4

1 回答 1

0

谢谢卢卡!!

将 send.mail(...) 包裹在 invisible() 中就成功了!

于 2016-05-09T12:28:14.837 回答