search for: mimetext

Displaying 3 results from an estimated 3 matches for "mimetext".

2011 May 17
5
Email out of R (code)
.... The code itself provides basic email functionality for email servers requiring authentication. It should be easy to extend it (e.g., for sending attachments). I hope it's useful. require(rJython) rJython <- rJython() rJython$exec( "import smtplib" ) rJython$exec("from email.MIMEText import MIMEText") rJython$exec("import email.utils") mail<-c( #Email settings "fromaddr = 'sender email address'", "toaddrs = 'recipient email address'", "msg = MIMEText('This is the body of the message.')", "msg['F...
2011 Sep 14
1
rJython matrix message
...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 l...
2016 Jan 08
0
yum-cron / email sending problem
...usr/sbin/yum-cron", line 694, in emitMessages map(lambda x: x.sendMessages(), self.emitters) File "/usr/sbin/yum-cron", line 694, in <lambda> map(lambda x: x.sendMessages(), self.emitters) File "/usr/sbin/yum-cron", line 227, in sendMessages msg = MIMEText(''.join(self.output)) File "/usr/lib64/python2.7/email/mime/text.py", line 30, in __init__ self.set_payload(_text, _charset) File "/usr/lib64/python2.7/email/message.py", line 226, in set_payload self.set_charset(charset) File "/usr/lib64/python2....