Wrox Programmer Forums
|
ASP CDO As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP CDO section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 7th, 2004, 08:50 AM
Registered User
 
Join Date: Oct 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default CDO Importance, Priority

Hello,

I send out the the following message in a DTS package on Windows 2000 server:

set msg = CreateObject("CDO.Message")
    msg.From = "SQL_Monitor@DBFIN01PR"
    msg.To = "[email protected]"
        msg.Subject = "GL File Created at " & Now
    msg.TextBody = "Check the file for its validity" & vbCRLF & vbCRLF
    msg.Configuration.Fields("urn:schemas:httpmail:pri ority").Value= cdoPriorityUrgent
    msg.Configuration.Fields("urn:schemas:httpmail:imp ortance").Value= cdoHigh
       msg.Configuration.Fields("urn:schemas:mailheader:X-Priority").Value = 0
    msg.Configuration.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "mailgw.huntington.com"
    msg.Configuration.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
    msg.Configuration.Fields.Update
    msg.Send


Yet, when I send the message I do not see the priority or importance shown in the message viewed in Lotus Notes. Basically does the code look correct for the the value I want for importance and priority. Any feedback would be great.

Thanks.


 
Old October 7th, 2004, 09:26 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi,

Try setting that to the equivalant number values. I am not sure if that recognizes the Constant cdoHigh. That could be the issue.
msg.Configuration.Fields("urn:schemas:httpmail:imp ortance").Value=2

Importance levels
0=low
1=normal
2=high

Hope that helps.
Cheers!

_________________________
- Vijay G
Strive for Perfection
 
Old January 20th, 2005, 05:07 PM
AZ AZ is offline
Registered User
 
Join Date: Jan 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

replace this line:

.Fields("urn:schemas:httpmail:importance") = 2

for this:

.Fields("urn:schemas:mailheader:X-MSMail-Priority") = 0

0 = High
3 = Normal
5 = Low






Similar Threads
Thread Thread Starter Forum Replies Last Post
Importance of SSL Certificates trents4life ASP.NET 2.0 Basics 0 November 24th, 2006 09:17 AM
Code in Java for priority queue kishor_shrestha Java GUI 3 November 13th, 2004 08:08 PM
Importance of Robot file eapsokha HTML Code Clinic 1 August 30th, 2004 05:14 AM
Importance in CDO patwadd Classic ASP Databases 2 August 15th, 2004 05:54 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.