473,574 Members | 2,918 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Setting Importance....h aving issues ! ! !

I am having some serious issues trying to set the "importance " of an ASP
email. I am using the CDO.Message object. Here is the code:
<%
Dim recipients
recipients = Request.Form("J ason") & Request.Form("D ebbie")
Dim Groups
Groups = Request.Form("S ales") & Request.Form("F ieldServices") &
Request.Form("C SC") & Request.Form("S upplyChain")
Set obj_Mail = Server.CreateOb ject("CDO.Messa ge")
Set obj_Config = Server.CreateOb ject("CDO.Confi guration")

obj_Config.Fiel ds("urn:schemas :mailheader:imp ortance").Value = 2
obj_Config.Fiel ds("urn:schemas :httpmail:impor tance").Value = 2

Set Flds = obj_Config.Fiel ds
With Flds
.Item("http://schemas.microso ft.com/cdo/configuration/sendusing") = 2
.Item("http://schemas.microso ft.com/cdo/configuration/smtpserver") =
"rrsmtp"
.Item("urn:sche mas:httpmail:pr iority").Value = 2
.Item("urn:sche mas:mailheader: importance").Va lue = 2

.Update
End With
With obj_Mail
Set .configuration = obj_config
.To = recipients
.From = "Da*****@danka. com"
.Subject = "Network Operations Severity 1" & " - " & Request.Form("S ystem")
.HTMLBody =_
"<html>" & vbcrlf &_
"<div align='center'> </div>" & vbcrlf &_
"<table width='100%' border='5' bordercolor='#0 066FF'>" & vbcrlf &_
"<tr>" & vbcrlf &_
"<td height='349' valign='top' bordercolor='#0 066FF'> " & vbcrlf &_
"<p align='center'> <font color='#0000FF' size='6'><stron g><u>Network
Operations " & vbcrlf &_
"Severity 1 Alert</u></strong></font></p>" & vbcrlf &_
"<p align='center'> &nbsp;</p>" & vbcrlf &_
"<p align='center'> <u><strong><fon t color='#FF0000' size='4'>Servic e Request
" & vbcrlf &_
"#: </u><br>" & Request.Form("S erviceRequestNo ") &
"</font></strong></u></p>" & vbcrlf &_
"<p align='center'> <u><strong><fon t color='#FF0000'
size='4'><u>Des cription</u><br></u>" & Request.Form("S ystem") & " - " &
Request.Form("I mpact") & "</font></strong></u></p>" & vbcrlf &_
"<p align='center'> &nbsp;</p>" & vbcrlf &_
"<p align='center'> <u><strong><fon t color='#0000FF' size='4'>Busine ss Groups
" & vbcrlf &_
"Potentiall y Affected</u><br>" & Groups & "</font></strong></u></p>" &
vbcrlf &_
"<p align='center'> &nbsp;</p>" & vbcrlf &_
"<p align='center'> <strong><font color='#0000FF' size='4'>Please visit <a
href='http://dankait'>http://dankait</a> " & vbcrlf &_
"for updates</font></strong></p>" & vbcrlf &_
"<p>&nbsp;</p></td>" & vbcrlf &_
"</tr>" & vbcrlf &_
"</table>" & vbcrlf &_
"</html>"
.Send
End With
Set obj_Mail = nothing
Set obj_Config = nothing
%>

I have tried to use the .Importance = 2 and I get the error that this object
does not support it. The email sends fine, but always comes as normal
importance. I have sent it to the Lotus Notes server *which is where it
eventually will need to go) and to a hotmail account. It does not show as
high priority to either.

What am I missing? Thanks ahead of time for any help!

Jul 21 '05 #1
3 3537
http://www.aspfaq.com/2315

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Jason Kistler" <ja***********@ danka.com> wrote in message
news:eR******** ******@TK2MSFTN GP11.phx.gbl...
I am having some serious issues trying to set the "importance " of an ASP
email. I am using the CDO.Message object. Here is the code:
<%
Dim recipients
recipients = Request.Form("J ason") & Request.Form("D ebbie")
Dim Groups
Groups = Request.Form("S ales") & Request.Form("F ieldServices") &
Request.Form("C SC") & Request.Form("S upplyChain")
Set obj_Mail = Server.CreateOb ject("CDO.Messa ge")
Set obj_Config = Server.CreateOb ject("CDO.Confi guration")

obj_Config.Fiel ds("urn:schemas :mailheader:imp ortance").Value = 2
obj_Config.Fiel ds("urn:schemas :httpmail:impor tance").Value = 2

Set Flds = obj_Config.Fiel ds
With Flds
.Item("http://schemas.microso ft.com/cdo/configuration/sendusing") = 2
.Item("http://schemas.microso ft.com/cdo/configuration/smtpserver") =
"rrsmtp"
.Item("urn:sche mas:httpmail:pr iority").Value = 2
.Item("urn:sche mas:mailheader: importance").Va lue = 2

.Update
End With
With obj_Mail
Set .configuration = obj_config
.To = recipients
.From = "Da*****@danka. com"
.Subject = "Network Operations Severity 1" & " - " & Request.Form("S ystem") .HTMLBody =_
"<html>" & vbcrlf &_
"<div align='center'> </div>" & vbcrlf &_
"<table width='100%' border='5' bordercolor='#0 066FF'>" & vbcrlf &_
"<tr>" & vbcrlf &_
"<td height='349' valign='top' bordercolor='#0 066FF'> " & vbcrlf &_
"<p align='center'> <font color='#0000FF' size='6'><stron g><u>Network
Operations " & vbcrlf &_
"Severity 1 Alert</u></strong></font></p>" & vbcrlf &_
"<p align='center'> &nbsp;</p>" & vbcrlf &_
"<p align='center'> <u><strong><fon t color='#FF0000' size='4'>Servic e Request " & vbcrlf &_
"#: </u><br>" & Request.Form("S erviceRequestNo ") &
"</font></strong></u></p>" & vbcrlf &_
"<p align='center'> <u><strong><fon t color='#FF0000'
size='4'><u>Des cription</u><br></u>" & Request.Form("S ystem") & " - " &
Request.Form("I mpact") & "</font></strong></u></p>" & vbcrlf &_
"<p align='center'> &nbsp;</p>" & vbcrlf &_
"<p align='center'> <u><strong><fon t color='#0000FF' size='4'>Busine ss Groups " & vbcrlf &_
"Potentiall y Affected</u><br>" & Groups & "</font></strong></u></p>" &
vbcrlf &_
"<p align='center'> &nbsp;</p>" & vbcrlf &_
"<p align='center'> <strong><font color='#0000FF' size='4'>Please visit <a
href='http://dankait'>http://dankait</a> " & vbcrlf &_
"for updates</font></strong></p>" & vbcrlf &_
"<p>&nbsp;</p></td>" & vbcrlf &_
"</tr>" & vbcrlf &_
"</table>" & vbcrlf &_
"</html>"
.Send
End With
Set obj_Mail = nothing
Set obj_Config = nothing
%>

I have tried to use the .Importance = 2 and I get the error that this object does not support it. The email sends fine, but always comes as normal
importance. I have sent it to the Lotus Notes server *which is where it
eventually will need to go) and to a hotmail account. It does not show as
high priority to either.

What am I missing? Thanks ahead of time for any help!

Jul 21 '05 #2
Perhaps if you used in the body text words like "Act now!" or "Don't
delay!", it would increase the importance? :-)

Jeff
"Jason Kistler" <ja***********@ danka.com> wrote in message
news:eR******** ******@TK2MSFTN GP11.phx.gbl...
I am having some serious issues trying to set the "importance " of an ASP
email. I am using the CDO.Message object. Here is the code:
<%
Dim recipients
recipients = Request.Form("J ason") & Request.Form("D ebbie")
Dim Groups
Groups = Request.Form("S ales") & Request.Form("F ieldServices") &
Request.Form("C SC") & Request.Form("S upplyChain")
Set obj_Mail = Server.CreateOb ject("CDO.Messa ge")
Set obj_Config = Server.CreateOb ject("CDO.Confi guration")

obj_Config.Fiel ds("urn:schemas :mailheader:imp ortance").Value = 2
obj_Config.Fiel ds("urn:schemas :httpmail:impor tance").Value = 2

Set Flds = obj_Config.Fiel ds
With Flds
.Item("http://schemas.microso ft.com/cdo/configuration/sendusing") = 2
.Item("http://schemas.microso ft.com/cdo/configuration/smtpserver") =
"rrsmtp"
.Item("urn:sche mas:httpmail:pr iority").Value = 2
.Item("urn:sche mas:mailheader: importance").Va lue = 2

.Update
End With
With obj_Mail
Set .configuration = obj_config
.To = recipients
.From = "Da*****@danka. com"
.Subject = "Network Operations Severity 1" & " - " & Request.Form("S ystem") .HTMLBody =_
"<html>" & vbcrlf &_
"<div align='center'> </div>" & vbcrlf &_
"<table width='100%' border='5' bordercolor='#0 066FF'>" & vbcrlf &_
"<tr>" & vbcrlf &_
"<td height='349' valign='top' bordercolor='#0 066FF'> " & vbcrlf &_
"<p align='center'> <font color='#0000FF' size='6'><stron g><u>Network
Operations " & vbcrlf &_
"Severity 1 Alert</u></strong></font></p>" & vbcrlf &_
"<p align='center'> &nbsp;</p>" & vbcrlf &_
"<p align='center'> <u><strong><fon t color='#FF0000' size='4'>Servic e Request " & vbcrlf &_
"#: </u><br>" & Request.Form("S erviceRequestNo ") &
"</font></strong></u></p>" & vbcrlf &_
"<p align='center'> <u><strong><fon t color='#FF0000'
size='4'><u>Des cription</u><br></u>" & Request.Form("S ystem") & " - " &
Request.Form("I mpact") & "</font></strong></u></p>" & vbcrlf &_
"<p align='center'> &nbsp;</p>" & vbcrlf &_
"<p align='center'> <u><strong><fon t color='#0000FF' size='4'>Busine ss Groups " & vbcrlf &_
"Potentiall y Affected</u><br>" & Groups & "</font></strong></u></p>" &
vbcrlf &_
"<p align='center'> &nbsp;</p>" & vbcrlf &_
"<p align='center'> <strong><font color='#0000FF' size='4'>Please visit <a
href='http://dankait'>http://dankait</a> " & vbcrlf &_
"for updates</font></strong></p>" & vbcrlf &_
"<p>&nbsp;</p></td>" & vbcrlf &_
"</tr>" & vbcrlf &_
"</table>" & vbcrlf &_
"</html>"
.Send
End With
Set obj_Mail = nothing
Set obj_Config = nothing
%>

I have tried to use the .Importance = 2 and I get the error that this object does not support it. The email sends fine, but always comes as normal
importance. I have sent it to the Lotus Notes server *which is where it
eventually will need to go) and to a hotmail account. It does not show as
high priority to either.

What am I missing? Thanks ahead of time for any help!

Jul 21 '05 #3
The one that gets through my spam filter:

"We ship qual1ty med1cations overn1ght to your door!"
Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
5506
by: Mike D | last post by:
The code below gives an error. Object doesn't support this property or method: 'myMail.Importance' How do I set importance on an email? Everywhere I have looked it looks like my syntax is right but is it? Thanks Mike Set myMail = CreateObject("CDO.Message")
6
9042
by: Peter Croft | last post by:
Hello. Can someone please tell me how to set the priority of an email message sent from an ASP script using CDOSYS as below - set oCdoMsg = server.createobject("CDO.Message") oCdoMsg.from=... oCdoMsg.to=... oCdoMsg.subject=... oCdoMsg.importance=1 ' fails oCdoMsg.HTMLBody=....
25
1899
by: Amarendra GODBOLE | last post by:
Hi, I am working on a legacy user space app, which has been developed entirely in C, some 15 years ago. Needless to say, it does not even partially conform to any standard. My team is in the process of adding new features to this app. As a start off, I asked them to write clean code, which conforms to certain aspects of the ANSI...
6
2430
by: Kermit Piper | last post by:
Hello, I thought this should be easy, but... all I want to do is set the value of this state drop-down based on a session var I'm getting back from a redirect (from the processing page): <% tax = session("Tax") city = session("City") state = session("State") %>
1
6466
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting" setting to be "E_ALL", notices are still not getting reported. The perms on my file are 664, with owner root and group root. The php.ini file is located...
4
2382
by: Frankie | last post by:
I have just gotten up to speed on what anonymous methods are (syntax, capabilities, etc), and how they can be used with /called via delegates. What I am wondering is... 1. Are they only/mostly syntactic sugar (important as that can be)? 2. Are anonymous methods *required* anywhere? That is, are anonymous methods the only way to...
2
1424
by: malgreen | last post by:
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...
97
2705
by: xahlee | last post by:
I'd like to introduce a blog post by Stephen Wolfram, on the design process of Mathematica. In particular, he touches on the importance of naming of functions. • Ten Thousand Hours of Design Reviews (2008 Jan 10) by Stephen Wolfram http://blog.wolfram.com/2008/01/10/ten-thousand-hours-of-design-reviews/ The issue is fitting here today,...
1
3584
by: Whyatt | last post by:
Hi all, I'm trying to create a message using SMTP Mail through Python with a message Importance of either 0 (Low) or 2 (High). If I do outer.Add_header('Importance', '0') it is ignored. If I do uter.Replace_header('Importance', '0') I get the error below. Traceback (most recent call last): File "#####", line 840, in <module>
0
8095
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7847
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8132
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6500
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5645
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5332
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3787
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2265
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 we have to send another system
0
1096
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.