467,885 Members | 1,198 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,885 developers. It's quick & easy.

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
Jul 16 '08 #1
  • viewed: 2501
Share:
1 Reply
On Jul 16, 4:42*pm, Whyatt <ed.why...@gmail.comwrote:
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()?
Jul 16 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Von Shean | last post: by
1 post views Thread by Rotsey | last post: by
reply views Thread by Mail Delivery System | last post: by
2 posts views Thread by =?Utf-8?B?QWRl?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.