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
.



Relevant Pages

  • Re: Setting Message Importance using SMTP Mail
    ... I'm trying to create a message using SMTP Mail through Python with a ...     outer.Replace_header ... Importance header? ...
    (comp.lang.python)
  • URGENT: REALLY NEED HELP: Feel Helpless
    ... went up trying out python in the only few days I had, ... import string, StringIO ... import mailbox, email, re ... for w in msg: ...
    (comp.lang.python)
  • boost
    ... I'm trying to use boost, but just don't know how to set it up. ... I'm now trying to compile World.cpp and use it from python ... std::string greet{return msg;} ...
    (comp.lang.python)
  • Re: Python:Email and Header Parsing: Some Help
    ... At some point, dont bother wrote: ... > (here msg) should be a string but not as an instance ... which already splits out the headers from the body. ... > HTMLGen with python on my machine. ...
    (comp.lang.python)
  • Why such different HTTP response results between 2.5 and 3.0
    ... for Python2.5 and Python 3.0 respectively. ... "\r\n" segments in msg 3.0 that is absent in msg 2.5. ... res = opener.open ... req = urllib.request.Request('http://www.pythonchallenge.com/pc/hex/ ...
    (comp.lang.python)