Re: Setting message priority with CDOSYS

From: Rob Collyer (webforumz_at_webforumz.com)
Date: 07/19/04


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 !


Relevant Pages

  • Re: Decoding Internet headers in email
    ... that can make a "Received" header that confuses many readers. ... The SMTP server may run a DNS lookup to determine ... and the name of the receiver. ... and the spoofer would never see the results of the SMTP ...
    (microsoft.public.security)
  • Re: (OT) Mail got blocked because of SORBS/DYNABLOCK
    ... > Of course!, for the record, I don't doubt his advice at all, I just wanted ... ISP the header sequence gets written with "His" ISP's IP in the chain. ... Whats the IP address of your SMTP server? ... I'm not out to destroy ...
    (RedHat)
  • Re: VIP and MX cont
    ... you must define priority of the respective records. ... the receiving SMTP server attempts to match the IP address of the ... established using real IP of one of the cluster nodes. ... record pointing to the VIP - name-IP validation will fail... ...
    (microsoft.public.isa.configuration)
  • Re: Spam question
    ... On Mon, 2003-09-01 at 04:12, Tomas Wolf wrote: ... Is it possible to malform e-mail's header? ... > SMTP server at home, I was capable of sending any kind of e-mail to ...
    (Security-Basics)
  • Re: Spoofing e-mail revisited
    ... The Barracuda either blocks a message and sends a NDR to the user ... IMAP/POP/SMTP client and your server as the mailox and SMTP server. ... You'll find that in the 4th "Received:" header. ...
    (microsoft.public.exchange.admin)