{"action":"created","issue":{"url":"https://api.github.com/repos/rpremraj/mailR/issues/22","labels_url":"https://api.github.com/repos/rpremraj/mailR/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/rpremraj/mailR/issues/22/comments","events_url":"https://api.github.com/repos/rpremraj/mailR/issues/22/events","html_url":"https://github.com/rpremraj/mailR/issues/22","id":72279848,"number":22,"title":"Error in ls(envir = envir, all.names = private) :    invalid 'envir' argument, when using MailR","user":{"login":"aakashbh","id":12191563,"avatar_url":"https://avatars.githubusercontent.com/u/12191563?v=3","gravatar_id":"","url":"https://api.github.com/users/aakashbh","html_url":"https://github.com/aakashbh","followers_url":"https://api.github.com/users/aakashbh/followers","following_url":"https://api.github.com/users/aakashbh/following{/other_user}","gists_url":"https://api.github.com/users/aakashbh/gists{/gist_id}","starred_url":"https://api.github.com/users/aakashbh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aakashbh/subscriptions","organizations_url":"https://api.github.com/users/aakashbh/orgs","repos_url":"https://api.github.com/users/aakashbh/repos","events_url":"https://api.github.com/users/aakashbh/events{/privacy}","received_events_url":"https://api.github.com/users/aakashbh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-04-30T21:01:50Z","updated_at":"2015-05-02T15:03:44Z","closed_at":"2015-05-02T15:03:44Z","body":"Hi I am trying to send an email using your package in R. I am experiencing a similar issue to the other user and I have turned on the debug flag, here is the output I am receiving. I would like to quikcly say I appreciate your help and the creation of this package!\r\n\r\nsender <- \"email@gmail.com\"\r\n> recipients <- c(\"email@gmail.com\")\r\n> send.mail(from = sender,\r\n+           to = recipients,\r\n+           subject=\"Subject of the email\",\r\n+           body = \"Body of the email\",\r\n+           smtp = list(host.name = \"smtp.gmail.com\", port = 465, \r\n+                       user.name=\"email@gmail.com\", passwd=\"pass\", tsl=TRUE),\r\n+           authenticate = TRUE,\r\n+           send = TRUE, debug = TRUE)\r\nDEBUG: JavaMail version 1.5.2\r\nDEBUG: successfully loaded resource: /META-INF/javamail.default.providers\r\nDEBUG: Tables of loaded providers\r\nDEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Oracle], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle], com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Oracle], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Oracle], com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Oracle], com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Oracle]}\r\nDEBUG: Providers Listed By Protocol: {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Oracle], imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Oracle], smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Oracle], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Oracle], pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Oracle], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle]}\r\nDEBUG: successfully loaded resource: /META-INF/javamail.default.address.map\r\nDEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle]\r\nDEBUG SMTP: need username and password for authentication\r\nDEBUG SMTP: useEhlo true, useAuth true\r\nDEBUG SMTP: trying to connect to host \"smtp.gmail.com\", port 465, isSSL false\r\nDEBUG SMTP: exception reading response, THROW: \r\njava.net.SocketTimeoutException: Read timed out\r\n\tat java.net.SocketInputStream.socketRead0(Native Method)\r\n\tat java.net.SocketInputStream.socketRead(Unknown Source)\r\n\tat java.net.SocketInputStream.read(Unknown Source)\r\n\tat java.net.SocketInputStream.read(Unknown Source)\r\n\tat com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:124)\r\n\tat java.io.BufferedInputStream.fill(Unknown Source)\r\n\tat java.io.BufferedInputStream.read(Unknown Source)\r\n\tat com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:89)\r\n\tat com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2284)\r\n\tat com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2031)\r\n\tat com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:697)\r\n\tat javax.mail.Service.connect(Service.java:386)\r\n\tat javax.mail.Service.connect(Service.java:245)\r\n\tat javax.mail.Service.connect(Service.java:194)\r\n\tat javax.mail.Transport.send0(Transport.java:253)\r\n\tat javax.mail.Transport.send(Transport.java:124)\r\n\tat org.apache.commons.mail.Email.sendMimeMessage(Email.java:1400)\r\n\tat org.apache.commons.mail.Email.send(Email.java:1437)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)\r\n\tat java.lang.reflect.Method.invoke(Unknown Source)\r\n\tat RJavaTools.invokeMethod(RJavaTools.java:386)\r\nError in ls(envir = envir, all.names = private) : \r\n  invalid 'envir' argument\r\n\r\nI have checked that my rJava and R studio versions are both 64-bit"},"comment":{"url":"https://api.github.com/repos/rpremraj/mailR/issues/comments/98369785","html_url":"https://github.com/rpremraj/mailR/issues/22#issuecomment-98369785","issue_url":"https://api.github.com/repos/rpremraj/mailR/issues/22","id":98369785,"user":{"login":"rpremraj","id":1059952,"avatar_url":"https://avatars.githubusercontent.com/u/1059952?v=3","gravatar_id":"","url":"https://api.github.com/users/rpremraj","html_url":"https://github.com/rpremraj","followers_url":"https://api.github.com/users/rpremraj/followers","following_url":"https://api.github.com/users/rpremraj/following{/other_user}","gists_url":"https://api.github.com/users/rpremraj/gists{/gist_id}","starred_url":"https://api.github.com/users/rpremraj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpremraj/subscriptions","organizations_url":"https://api.github.com/users/rpremraj/orgs","repos_url":"https://api.github.com/users/rpremraj/repos","events_url":"https://api.github.com/users/rpremraj/events{/privacy}","received_events_url":"https://api.github.com/users/rpremraj/received_events","type":"User","site_admin":false},"created_at":"2015-05-02T15:03:44Z","updated_at":"2015-05-02T15:03:44Z","body":"Excellent!!! Have fun using mailR."}}