471,349 Members | 1,988 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,349 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 2568
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Michael | last post: by
1 post views Thread by tiger | last post: by
5 posts views Thread by Kim Nørby Andersen | last post: by
1 post views Thread by rzabor | last post: by
reply views Thread by kvogelgesang | last post: by

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.