Russell Bungay wrote:
> for attachment in attachments:
>
> sub_msg = email.Message.Message()
> sub_msg.add_header('Content-type', content_type, name=attachment)
> sub_msg.add_header('Content-transfer-encoding'
Hello,
>>> main_msg['Content-type'] = 'Multipart/mixed'
>> Would it be the 'Content-Type' header? I've no expertise in this, but
>> doesn't 'multipart' mean 'has attachments'?
> Brilliant, thank you. A swift test on the number of attachments and
> changing the header suitably does the job.
Hello,
>> main_msg['Content-type'] = 'Multipart/mixed'
> Would it be the 'Content-Type' header? I've no expertise in this, but
> doesn't 'multipart' mean 'has attachments'?
Brilliant, thank you. A swift test on the number of attachments and
changing the header suitably does the job.
Thank
and one or two
random searches but can't see what is happening. Any advice or
suggestions would be welcome.
Thank you for your help,
Russell Bungay
--
The Duck Quacks:
http://www-users.york.ac.uk/~rb502/ - Homepage
http://www-users.york.ac.uk/~rb502/blog/quack.shtml - Blog
http://www.flick
Hello,
I'm using tarfile module to create an archive. For my example I'm using
Amsn file and directory tree.
My variables are like these ones:
path = /home/chaica/downloads/amsn-0_94/skins/Tux/smileys/shades.gif
fileName = amsn-0_94/skins/Tux/smileys/shades.gif
tar.add( path, fileName )
and while