Re: string payload expected: error

2009-11-29 Thread Lie Ryan
On 11/27/2009 8:43 PM, Ramdas wrote: I tried with MIMEBASE but it still fails.. I changed it to MIMEText, hoping that might trick __handletext to think its a string Anyway that also doesn't work. just pass the string directly to MIMEBase.set_payload: fp = open('...') msg1 = MIMEBase(maint

Re: string payload expected: error

2009-11-27 Thread Ramdas
erfectly when I dont > > have any attachments. Please find my code at > > >http://dpaste.com/hold/125574/ > > > However when I try constructing with attachments it crashes with this > > error string payload expected: error. > > Except if the traceback is due to a rec

Re: string payload expected: error

2009-11-26 Thread Lie Ryan
/125574/ However when I try constructing with attachments it crashes with this error string payload expected: error. Except if the traceback is due to a recursive function that doesn't terminate, please always post the FULL traceback. Don't summarize the error message. Going through

Re: string payload expected: error

2009-11-26 Thread Ramdas
erfectly when I dont > > have any attachments. Please find my code at > > >http://dpaste.com/hold/125574/ > > > However when I try constructing with attachments it crashes with this > > error string payload expected: error. > > > Going through the trace erro

Re: string payload expected: error

2009-11-26 Thread MRAB
/125574/ However when I try constructing with attachments it crashes with this error string payload expected: error. Going through the trace error I discover that as I call the function msg.as_string, the function . _handle_text(self, msg) expects a string object but I am generating list object. Can

string payload expected: error

2009-11-26 Thread Ramdas
when I try constructing with attachments it crashes with this error string payload expected: error. Going through the trace error I discover that as I call the function msg.as_string, the function . _handle_text(self, msg) expects a string object but I am generating list object. Can someone advise