Setting Message Importance using SMTP Mail
MRAB
google at mrabarnett.plus.com
Wed Jul 16 17:54:33 EDT 2008
On Jul 16, 4:42 pm, Whyatt <ed.why... at gmail.com> wrote:
> 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()?
More information about the Python-list
mailing list