rpremraj / mailR

A utility to send emails from the R programming environment
http://rpremraj.github.io/mailR/
190 stars 57 forks source link

Not working on rocker/hadleyverse:latest #20

Closed ignacio82 closed 8 years ago

ignacio82 commented 9 years ago

I'm trying the package using a docker image. This is what I'm running

library(knitr)
library(mailR)
knit2html("my_report.Rmd", options = "")

send.mail(from = "SOMETHING@gmail.com",
          to = c("SOMETHING@gmail.com"),
          subject = "HTML file generated using Markdown",
          body = "my_report.html",
          html = TRUE,
          inline = TRUE,
          smtp = list(host.name = "smtp.gmail.com", port = 465, user.name = "SOMETHING", passwd = "PASSWORD_SOMETHING", ssl = TRUE),
          authenticate = TRUE,
          send = TRUE)

I get the following error:

Error in ls(envir = envir, all.names = private) : 
  invalid 'envir' argument

What am I doing wrong?

Thanks!

ghatfan99 commented 9 years ago

hello,

you must configure your server settings i think

regards

rpremraj commented 9 years ago

Have you altered the Gmail's security settings to allow third-party apps to connect?

rpremraj commented 9 years ago

Check: https://github.com/rpremraj/mailR/issues/8#issuecomment-60147204

rpremraj commented 8 years ago

No response... presuming issue resolved.