PC Review


Reply
Thread Tools Rate Thread

CDO and message priority (C#)

 
 
rzabor
Guest
Posts: n/a
 
      3rd Mar 2005
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:mailheaderriority"].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 }


 
Reply With Quote
 
 
 
 
=?Utf-8?B?Q01N?=
Guest
Posts: n/a
 
      13th Mar 2005
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:mailheaderriority"].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 }
>
>
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Message Rule Priority coldwinter Windows Vista Mail 7 30th Jan 2008 03:50 AM
high priority message notification =?Utf-8?B?TGF1cmEgaW4gVGV4YXM=?= Microsoft Outlook Discussion 0 25th Oct 2005 10:08 PM
Message Queue in C# : Priority tiger Microsoft C# .NET 1 3rd Oct 2005 06:35 PM
2 dos apps slow until NTVDM priority lowered - can i set process priority automatically at startup ? scott Microsoft Windows 2000 6 17th Mar 2005 04:42 PM
taskmgr.exe set priority: frightening message Rudy Ray Moore Windows XP Help 0 17th Mar 2004 07:11 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:15 PM.