mailR最近停止使用Gmail

时间:2019-02-13 16:14:58

标签: r sendmailr

我使用了几个月的脚本最近已停止工作并返回以下错误:

Error: EmailException (Java): Sending the email to the following server failed : smtp.gmail.com:465

已启用对Gmail应用程序的较少安全访问,并且该脚本已经可靠运行了几个月,但我想最近一定有所更改。想知道我是否一个人经历这个。

send.mail(from = "sender@gmail.com",
      to       = "recepient@gmail.com",
      replyTo  = "sender@gmail.com",
      subject  = "Survey",
      body     = bunch_of_email_tables,
      html     = TRUE,
      inline   = TRUE,
      smtp     = list(host.name = "smtp.gmail.com",
                  port = 465,
                  user.name = "sender@gmail.com",
                  passwd = "password",
                  ssl = TRUE),
      authenticate = TRUE,
      send     = TRUE)

0 个答案:

没有答案