473,507 Members | 2,504 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Setting Imoprtance level on E-mails using CDO in IIS 6.0

8 New Member
Good Morning,

My question refers to setting importance levels for Emails sent using IIs 6.0. Initially the webserver that was sending E-mails used IIS 5.x, but since the upgrade I can not use the configuration for E-mail Importance. I keep getting the following error:

Microsoft VBScript runtime error '800a01b6'

Object doesn't support this property or method: 'Importance'
I've searched and searched but I can't seem to find any help on line.

Does anyone have any ideas on how to alleviate this issue?

The code reads;

ObjSendmail.Importance = request.Querystring("SelImportance")

As you can see the information is collected from another form, but I don't quite know how to fix it.

Thanks,

Mal Green
Nov 20 '07 #1
2 1418
jhardman
3,406 Recognized Expert Specialist
Let me ask you a very straight-forward question. Is it worth it to try to fix this? email importance is something that was built in to email fifteen years ago, and no one has used it since. Are you actually using it, or do you want to just delete that line?

Jared
Nov 22 '07 #2
JamieHowarth0
533 Recognized Expert Contributor
Hi Mal,

Having checked MSDN's documentation the Importance value of a mail object using CDO can be one of three values - 0 (low importance), 1 (normal) and 2 (high).

You are setting the importance value using Request.Querystring("SelImportance") - however most (if not all, in my experience) parameters in a GET request to server are parsed as string values - so chances are SelImportance will equal "Low", "Normal" or "High" (or "0", "1" or "2").

If the data is qualititative (i.e. uses words like Low etc.) to describe the message priority then you need to use a Select Case like so:
Expand|Select|Wrap|Line Numbers
  1. Select Case Request.QueryString("SelImportance")
  2.     Case "Low"
  3.         ObjSendMail.Importance = 0
  4.     Case "High"
  5.         ObjSendMail.Importance = 2
  6.     Case Else
  7.         ObjSendMail.Importance = 1
  8. End Select
  9.  
Or, if your data is quantitative (numbers, but the server recognises it as a string value) then simply use:
Expand|Select|Wrap|Line Numbers
  1. ObjSendMail.Importance = CInt(Request.QueryString("SelImportance"))
Addenum: the other thing I have noticed - you say that you have just migrated from IIS 5.x to 6.0? What object are you using for the SendMail command? Documentation shows that CDONTS is no longer supported as of IIS6 and has been superceded by CDOSYS which would involve using this line of code:
Expand|Select|Wrap|Line Numbers
  1. Set ObjSendMail = Server.CreateObject("CDOSYS.Message")
Hope this helps.

medicineworker
Nov 23 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
1954
by: manish | last post by:
Hi, I am a fresher in the programming field i.e although I have done programming at the basic level but at professional level I am very new and I am facing many problems. These probllems are...
1
1145
by: Rogers | last post by:
When I tried to run an application developed by VB.net in IIS6,This error occured,The error message is "Current credit level setting desn't support Debuging"(in chinese),I dont't know how to...
6
3535
by: one man army | last post by:
> <URL:http://developer.mozilla.org/en/docs/DOM:element.textContent> I tried setting the textContent on a trivial DIV text element. Querying the result with window.alert() shows that it worked....
3
4722
by: DexHex | last post by:
Hi, I am stumpt. Is there anyway to set the background image on a webpart title?
2
1464
by: RanjitSingh.RS | last post by:
I have several Databases in a Instance . I want to a set particular Isolation Level for Only one read Only Database . Is it Possible to set a specific Isloation Level at a Database Level
0
2287
by: kidders | last post by:
Seem to be having problems with the en-GB culture/uiCulture setting, its making dates a format of the incorrect MM/dd/yyyy. I've searched the groups on this issue, here is a lengthy thread, where...
6
4227
by: surfrat_ | last post by:
Hi, I have a project that loads a splash screen while initialization takes place. On the splash form is a label that I want to update with messages on what is happening with the initialization....
1
3126
by: Jerad Rose | last post by:
I believe this issue is specific to ASP.NET. Why does VB.NET (2.0) ignore the project-level setting for Option Strict? I have the setting turned on in web.config: <compilation debug="true"...
7
3925
by: James | last post by:
Today my friend ask me a question about setting logsecond to -1. The following sentences were copied from DB2 InforCenter: "By setting logsecond to -1, you will have no limit on the size of the...
2
4228
by: db2admin | last post by:
hi, I have query which runs great when optimization level is changed to 3 but does not run fine with default optimization level of 5. since this is a query in java code, i do not know how can i...
0
7110
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7314
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7482
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1540
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
758
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
411
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.