Re: MIMEText encode error - Python 2.6.6

2011-09-07 Thread neubyr
On Tue, Sep 6, 2011 at 5:05 PM, MRAB wrote: > On 06/09/2011 22:52, neubyr wrote: >> >> I am trying to write a program which can email file's content using >> smtplib. I am getting following error while using Python 2.6.6 >> version. >> >> {{{ >> File "./killed_jobs.py", line 88, in sendmail >>    

Re: MIMEText encode error - Python 2.6.6

2011-09-06 Thread MRAB
On 06/09/2011 22:52, neubyr wrote: I am trying to write a program which can email file's content using smtplib. I am getting following error while using Python 2.6.6 version. {{{ File "./killed_jobs.py", line 88, in sendmail msg = MIMEText(ipfile.read, 'plain') File "/home/ssp/sge/python/2