How to define a name of attachment in email with python ?

fowlertrainer at anonym.hu fowlertrainer at anonym.hu
Thu May 27 06:37:35 EDT 2004


I want to set the name of the attachment in an python-generated email.

This is needed, because the another site we want to get this name, and 
repack the attachments by name (an ID).

Some programming languges (components) are allow to set this.
(See Delphi/Indy/MessagePart)

       fp=open(plist[i], 'rb')
       mdata=MIMEAudio(fp.read(),'mpeg')
       fp.close()
       msg.attach(mdata)
       ???? msg['filename']='xxx'

Can anyone help in this problem ?

Thanx for it:
 FT




More information about the Python-list mailing list