[Tutor] how to get an email attachment
wescpy at gmail.com
Tue Aug 22 22:15:38 CEST 2006
On 8/21/06, shawn bright <nephish at gmail.com> wrote:
> Yes, indeed. I found in the essential reference book. It looks like it works
> in the email module also. I will try a few things out here and let you know
> how it goes.
> On 8/21/06, Alan Gauld <alan.gauld at freenet.co.uk> wrote:
> > I'm no expert here, but isn't there a Mime module for
> > handling mail attachments? Might be worth a look.
> > ----- Original Message -----
> > From: "shawn bright" < nephish at gmail.com>
> > Sent: Monday, August 21, 2006 9:50 PM
> > What i need to do is get an attachment. That
> > > attachment
> > > is going to be encoded in base 64.
> > > so, i am looking and i can't find how to get the attachment.
in particular, check out the email.Message submodule, esp. get_payload().
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
More information about the Tutor