Setting Message Importance using SMTP Mail

W

Whyatt

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
 
M

MRAB

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()?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top