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
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
/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
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
/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
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