Google
 
Webnews.only-4-geeks.com
Interesting places
news.only-4-geeks.com Forum Index » Python

Setting Message Importance using SMTP Mail

 
Jump to:  
 
Whyatt
PostPosted: Wed Jul 16, 2008 3:42 pm    Post subject: Setting Message Importance using SMTP Mail
       
Hi all,

I'm trying to create a message using SMTP Mail through Python with a
message Importance of either 0 (Low) or 2 (High).

If I do outer.Add_header('Importance', '0') it is ignored.

If I do uter.Replace_header('Importance', '0') I get the error below.
Traceback (most recent call last):
File "#####", line 840, in <module>
outer.Replace_header('Importance', '0')
AttributeError: MIMEMultipart instance has no attribute
'Replace_header'

Can anyone provide any clues on the correct way of updating the Msg
Importance header?

Thanks in advance
Ed
 

 
MRAB
PostPosted: Wed Jul 16, 2008 9:54 pm    Post subject: Re: Setting Message Importance using SMTP Mail
       
On Jul 16, 4:42 pm, Whyatt <ed.why...@gmail.com> wrote:
Quote:
Hi all,

I'm trying to create a message using SMTP Mail through Python with a
message Importance of either 0 (Low) or 2 (High).

If I do outer.Add_header('Importance', '0') it is ignored.

If I do uter.Replace_header('Importance', '0') I get the error below.
Traceback (most recent call last):
  File "#####", line 840, in <module
    outer.Replace_header('Importance', '0')
AttributeError: MIMEMultipart instance has no attribute
'Replace_header'

Can anyone provide any clues on the correct way of updating the Msg
Importance header?

Are you sure that shouldn't be outer.add_header(...) and

outer.replace_header()?
 

Page 1 of 1 .:.

Google
 
Webnews.only-4-geeks.com

Windows Update | C++ | C | PHP | JavaScript | Photoshop | Programming | Windows 2000 | Python | Windows XP | Object | Flash | Flash - ActionScript | Paint Shop Pro | Excel | PowerPoint | Access | Word | Windows 98 | Internet Explorer 6.0 | CorelDraw12 | Java | XML | asm x86 | Linux Mandrake | Linux RedHat | Outlook |  | news from newsgroups |_ | s

Web Templates

Awesome Website Templates ©

Gdzieś pomiędzy - Golec uOrkiestra Są pewne sprawy - Grzegorz Turnau markizy nowe samochody może