Setting Message Importance using SMTP Mail

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Whyatt

    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_heade r('Importance', '0') it is ignored.

    If I do uter.Replace_he ader('Importanc e', '0') I get the error below.
    Traceback (most recent call last):
    File "#####", line 840, in <module>
    outer.Replace_h eader('Importan ce', '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

    #2
    Re: Setting Message Importance using SMTP Mail

    On Jul 16, 4:42 pm, Whyatt <ed.why...@gmai l.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_heade r('Importance', '0') it is ignored.
    >
    If I do uter.Replace_he ader('Importanc e', '0') I get the error below.
    Traceback (most recent call last):
      File "#####", line 840, in <module>
        outer.Replace_h eader('Importan ce', '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_heade r(...) and
    outer.replace_h eader()?

    Comment

    Working...