472,804 Members | 980 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,804 software developers and data experts.

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
1 3325
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Peter Croft | last post by:
Hello. Can someone please tell me how to set the priority of an email message sent from an ASP script using CDOSYS as below - set oCdoMsg = server.createobject("CDO.Message") oCdoMsg.from=......
1
by: Von Shean | last post by:
I need to send ".mht" files to different recipients. I have saved .mht files using CDO. Now i have to send it across.. I have two options both have different types of problems Using CDO I...
3
by: pmud | last post by:
Hi, I have ab ASP.Net Application in which I need to send e-mail on button click. Even though my C# code for that is correct.I am getting the following error:: I think the following error can be...
0
by: Rob R. Ainscough | last post by:
I have a web server running (IIS 6) my .NET 2.0 web app and my web app uses System.Net.Mail to send EMail's to customers. The EMail host (mail.speakeasy.net) I was using to does not support relay...
1
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting"...
1
by: Rotsey | last post by:
Hi, I am using System.Net.Mail.SmtpClient to send mail. I used localhost as the host but this did not work. For my app to work on a installed PC do I have specify the SMTP server of the...
0
by: Mail Delivery System | last post by:
--foo-mani-padme-hum-2391-1-1176705911 Content-Type: text/plain This message was created automatically by mail delivery software. A message that you sent could not be delivered to one or more...
2
by: =?Utf-8?B?QWRl?= | last post by:
HI All, I am encountering the following error when I try to send an email through a SMTP server. I believe the problem lies with the authentication part when the network crednetials are used,...
2
by: malgreen | last post by:
Good Morning, My question refers to setting importance levels for Emails sent using IIs 6.0. Initially the webserver that was sending E-mails used IIS 5.x, but since the upgrade I can not use the...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.