473,395 Members | 1,466 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

CDO and message priority (C#)

Hi,

I'm trying to set message priority (I'm using CDO for sending) this way:

private CDO.Configuration m_cdoConfig= new CDO.Configuration();

private void Config()
{
[..]
m_ConfigFields["urn:schemas:mailheader:priority"].Value=
CDO.cdoPriorityValues.cdoPriorityUrgent;
m_ConfigFields["urn:schemas:mailheader:importance"].Value=
CDO.cdoImportanceValues.cdoHigh;
[..]

m_ConfigFields.Update();
}

public Int32 SendMail(..)
{
[..]
CDO.Message IMsg= new CDO.Message();
IMsg.Configuration = m_cdoConfig;
[..]

IMsg.Send();
}

unfortunately, the message is always delivered with "normal" priority.
Did anybody try to do the above with better result than mine ?

--
Rzabor | { x= Rzabor, y= wp }
Jul 21 '05 #1
1 2635
CMM
Why aren't you using System.Web.Mail?
Doesn't that wrap CDO nicely?

"rzabor" wrote:
Hi,

I'm trying to set message priority (I'm using CDO for sending) this way:

private CDO.Configuration m_cdoConfig= new CDO.Configuration();

private void Config()
{
[..]
m_ConfigFields["urn:schemas:mailheader:priority"].Value=
CDO.cdoPriorityValues.cdoPriorityUrgent;
m_ConfigFields["urn:schemas:mailheader:importance"].Value=
CDO.cdoImportanceValues.cdoHigh;
[..]

m_ConfigFields.Update();
}

public Int32 SendMail(..)
{
[..]
CDO.Message IMsg= new CDO.Message();
IMsg.Configuration = m_cdoConfig;
[..]

IMsg.Send();
}

unfortunately, the message is always delivered with "normal" priority.
Did anybody try to do the above with better result than mine ?

--
Rzabor | { x= Rzabor, y= wp }

Jul 21 '05 #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=......
18
by: Ken | last post by:
Hi. Can anyone refer me to any articles about the compatibility between c++ polymorphism and real-time programming? I'm currently on a real-time c++ project, and we're having a discussion...
1
by: Michael | last post by:
I have created a program which sends a message to a message Queue called MyMessage, and it is supposed to recieve it and show on a dataGrid. When I click to send the message it doesn't seem to send...
1
by: tiger | last post by:
Hi, I have a question on Microsoft Message Queue. How do I give higher priority to messages and get it process before others. I will like to use the mechanism supplied by the queue service...
1
by: tiger | last post by:
Hi, I have a question on Microsoft Message Queue. How do I give higher priority to messages and get it process before others. I will like to use the mechanism supplied by the queue service...
5
by: Kim Nørby Andersen | last post by:
Hello there I am lost. i receive the output in the bottom, from a site that runs excellently on our development server, but dies on the customer. We have had a first version running at the...
8
by: Rod | last post by:
I have been working with ASP.NET 1.1 for quite a while now. For some reason, opening some ASP.NET applications we wrote is producing the following error message: "The Web server reported...
1
by: rzabor | last post by:
Hi, I'm trying to set message priority (I'm using CDO for sending) this way: private CDO.Configuration m_cdoConfig= new CDO.Configuration(); private void Config() { m_ConfigFields.Value=
0
by: kvogelgesang | last post by:
Hi all, I have an Access 2000 Database that is programed to send out emails and is working fine except i would like to change the message priority to High so it buzzes people using blackberries...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.