{"action":"created","issue":{"url":"https://api.github.com/repos/rpremraj/mailR/issues/25","labels_url":"https://api.github.com/repos/rpremraj/mailR/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/rpremraj/mailR/issues/25/comments","events_url":"https://api.github.com/repos/rpremraj/mailR/issues/25/events","html_url":"https://github.com/rpremraj/mailR/issues/25","id":76475870,"number":25,"title":"Unable to send email from R (Error in ls(envir = envir, all.names = private))","user":{"login":"jinmook928","id":7507878,"avatar_url":"https://avatars.githubusercontent.com/u/7507878?v=3","gravatar_id":"","url":"https://api.github.com/users/jinmook928","html_url":"https://github.com/jinmook928","followers_url":"https://api.github.com/users/jinmook928/followers","following_url":"https://api.github.com/users/jinmook928/following{/other_user}","gists_url":"https://api.github.com/users/jinmook928/gists{/gist_id}","starred_url":"https://api.github.com/users/jinmook928/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jinmook928/subscriptions","organizations_url":"https://api.github.com/users/jinmook928/orgs","repos_url":"https://api.github.com/users/jinmook928/repos","events_url":"https://api.github.com/users/jinmook928/events{/privacy}","received_events_url":"https://api.github.com/users/jinmook928/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-05-14T20:14:56Z","updated_at":"2015-11-17T22:29:44Z","closed_at":null,"body":"Hi,\r\n\r\nI am trying to test sending an email from R with mailR package, but I keep getting such error message which I do not understand. I browsed around if there's any existing solution, but failed to find one.\r\n\r\nI also tested running the same smtp host with port =25 thru telnet and connection to smtp server looks fine via telnet. So, port and smtp host doesn't seem to be an issue. It only becomes an issue when I run thru R for some reason. Can someone help interpreting the error here? Greatly appreciate.\r\n\r\nCommand:\r\nsend.mail(from = \"abc@company.com\",\r\n          to = \"xyz@company.com\",\r\n          subject = \"Hello this is a testing message\",\r\n          body = \"And this is a body text\",\r\n          smtp = list(host.name = \"mailhub.company.com\",port=25),\r\n          authenticate = FALSE,\r\n          send = TRUE,debug=TRUE)\r\n\r\nError:\r\n\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: useEhlo true, useAuth false\r\nDEBUG SMTP: trying to connect to host \"mailhub.company.com\", port 25, isSSL false\r\nError in ls(envir = envir, all.names = private) : \r\n  invalid 'envir' argument"},"comment":{"url":"https://api.github.com/repos/rpremraj/mailR/issues/comments/157530808","html_url":"https://github.com/rpremraj/mailR/issues/25#issuecomment-157530808","issue_url":"https://api.github.com/repos/rpremraj/mailR/issues/25","id":157530808,"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-11-17T22:29:44Z","updated_at":"2015-11-17T22:29:44Z","body":"Folks, I strongly feel this is a connectivity issue. Unfortunately I can't reproduce the error at my end either from work or from home."}}