Unable to send an email from R using mailR package (Error in ls(envir = envir, all.names = private)) -


i trying test sending email r mailr package, keep getting such error message not understand. browsed around if there's existing solution, failed find one.

i tested running same smtp host port =25 thru telnet , connection smtp server looks fine via telnet. so, port , smtp host doesn't seem issue. becomes issue when run thru r reason. can interpreting error here? appreciate.

command:

send.mail(from = "abc@company.com", = "xyz@company.com", subject = "hello testing message", body = "and body text", smtp = list(host.name = "mailhub.company.com",port=25), authenticate = false, send = true,debug=true) 

error:

debug: javamail version 1.5.2 debug: loaded resource: /meta-inf/javamail.default.providers debug: tables of loaded providers debug: providers listed 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]} debug: providers listed 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]} debug: loaded resource: /meta-inf/javamail.default.address.map debug: getprovider() returning javax.mail.provider[transport,smtp,com.sun.mail.smtp.smtptransport,oracle] debug smtp: useehlo true, useauth false debug smtp: trying connect host "mailhub.company.com", port 25, isssl false error in ls(envir = envir, all.names = private) :  invalid 'envir' argument 

further debugging shows:

8: .jrcall(x, name, ...)  9: .jcall("rjavatools", "ljava/lang/object;", "invokemethod", cl, .jcast(if (inherits(o, "jobjref") || inherits(o, "jarrayref")) o else cl, "java/lang/object"), .jnew("java/lang/string", method), j_p, j_pc, use.true.class = true, evalstring = simplify, evalarray = false) 10: .jcheck(silent = false) 11: stop(list(message = "org.apache.commons.mail.emailexception: sending email following server failed : mailhub.company.com:25", call = .jcall("rjavatools", "ljava/lang/object;", "invokemethod", cl, .jcast(if (inherits(o, "jobjref") || inherits(o, "jarrayref")) o else cl, "java/lang/ 12: conditionmessage(cond) 13: conditionmessage.condition(cond) 14: c$message 15: `$.throwable`(c, "message") 

but unable figure out why sendin email assigned smtp host not working correctly while port , smtp information correct.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -