Hello, I've posted something similar under a different subject and never received a solution. Trying again with (hopefully) a better description.
Objective: Send a matrix of string data in an email message. The message must have authentication and be sent via an R script. I'm almost there! Here is where I am at: I collect long error message lines in 'errs', which is a matrix. Then I collapse them into a character vector via: errs = paste(errs, collapse = "") Then I send that in a email via rJython. The message is sent to an Microsoft Outlook address like this: mail = c( ....etc... paste("msg = MIMEText('",errs,"')",sep=""), ...etc....) ...etc... [the rest of the rJython stuff to send a message omitted here] jython.exec(rJython,mail) The problem: The issue is that the message wraps the text in the body of the message so that the message just looks like one big line of text which makes it very difficult to read (aka is not acceptable). Notes: 1) The message must have authentication; therefore, I am using rJython. (My understanding is that there is no R way to send an email message with authentication.) 2) I have to receive the message in Outlook. 3) When I do errs = paste(errs, collapse = "\n"), and pass that as the message text, rJython gives me an error: Error in ls(envir = envir, all.names = private) : invalid 'envir' argument Thanks so much for your help! I'm new to R by the way... Ben [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.