Re: Setting message priority with CDOSYS
From: Rob Collyer (webforumz_at_webforumz.com)
Date: 07/19/04
- Next message: Rob Collyer: "Re: asp chat"
- Previous message: Rob Collyer: "Re: upload file component"
- In reply to: Aaron [SQL Server MVP]: "Re: Setting message priority with CDOSYS"
- Next in thread: Yan-Hong Huang[MSFT]: "Re: Setting message priority with CDOSYS"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 19 Jul 2004 18:35:47 +0000 (UTC)
"Aaron [SQL Server MVP]" <ten.xoc@dnartreb.noraa> wrote in
news:OjYaVTZbEHA.3204@TK2MSFTNGP09.phx.gbl:
> I can't get these to work either, even when I set importance to high
> and priority to urgent, the header comes in with both stating normal.
> I think it might depend on the SMTP server, whether it preserves the
> values or ignores them. Here is the code I used (I tried setting the
> imp/pri on both config and message):
>
> <!--
> METADATA
> TYPE="typelib"
> UUID="CD000000-8B95-11D1-82DB-00C04FB1625D"
> NAME="CDO for Windows 2000 Library"
> -->
> <%
> Set cdoConfig = CreateObject("CDO.Configuration")
>
> With cdoConfig.Fields
> .Item(cdoSendUsingMethod) = cdoSendUsingPort
> .Item(cdoSMTPServer) = "<mail server>"
> .Item(cdoPriority) = cdoPriorityUrgent
> .Item(cdoImportance) = cdoHigh
> .Update
> End With
>
> Set cdoMessage = CreateObject("CDO.Message")
>
> With cdoMessage
> Set .Configuration = cdoConfig
> .Fields(cdoPriority) = cdoPriorityUrgent
> .Fields(cdoImportance) = cdoHigh
> .From = "from@from.com"
> .To = "to@to.com"
> .Subject = "Sample CDO Message"
> .TextBody = "This is a test for CDO.message"
> .Send
> End With
>
> Set cdoMessage = Nothing
> Set cdoConfig = Nothing
> %>
>
> Header still says:
>
> Importance: normal
> Priority: normal
>
You code looks fine.....
What software is the smtp server running?
-- Robert Collyer www.webforumz.com Free Web Design and Development Help, Discussions, tips and Critique! ASP, VB, .NET, SQL, CSS, HTML, Javascript, Flash, XML, SEO !
- Next message: Rob Collyer: "Re: asp chat"
- Previous message: Rob Collyer: "Re: upload file component"
- In reply to: Aaron [SQL Server MVP]: "Re: Setting message priority with CDOSYS"
- Next in thread: Yan-Hong Huang[MSFT]: "Re: Setting message priority with CDOSYS"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|