472,372 Members | 2,231 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,372 software developers and data experts.

cdo importance syntax or sintax

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")
myMail.From = "Th*********@ThePound.com"
myMail.To = "my*****@ppdi.com"
myMail.Subject = "Test"
myMail.Importance = 2
myMail.HTMLBody = "Test of Importance"
myMail.Send
Set myMail = Nothing
Jul 19 '05 #1
3 5429
Found this
MyMail.Fields("urn:schemas:httpmail:importance").V alue = 2
It sends the mail but does not set importance?

Mike

"Mike D" <Mi***@nospam.com> wrote in message
news:eS**************@TK2MSFTNGP11.phx.gbl...
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")
myMail.From = "Th*********@ThePound.com"
myMail.To = "my*****@ppdi.com"
myMail.Subject = "Test"
myMail.Importance = 2
myMail.HTMLBody = "Test of Importance"
myMail.Send
Set myMail = Nothing

Jul 19 '05 #2
http://www.aspfaq.com/2315

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"Mike D" <Mi***@nospam.com> wrote in message
news:OU**************@TK2MSFTNGP12.phx.gbl...
Found this
MyMail.Fields("urn:schemas:httpmail:importance").V alue = 2
It sends the mail but does not set importance?

Mike

"Mike D" <Mi***@nospam.com> wrote in message
news:eS**************@TK2MSFTNGP11.phx.gbl...
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")
myMail.From = "Th*********@ThePound.com"
myMail.To = "my*****@ppdi.com"
myMail.Subject = "Test"
myMail.Importance = 2
myMail.HTMLBody = "Test of Importance"
myMail.Send
Set myMail = Nothing


Jul 19 '05 #3
Aaron that was the first place I looked. Using the code from that site I
get
Object doesn't support this property or method: 'cdoMessage.Importance'

With the importance line texted out I get
error '8004020f'

Now I am really confused

I set
cdoConfig.Fields.Item(sch & "sendusing") = 1
and still texted out the importance line and the email comes through with
high importance. If I uncomment the importance line it fails again???
Mike
"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
news:u7**************@TK2MSFTNGP12.phx.gbl...
http://www.aspfaq.com/2315

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"Mike D" <Mi***@nospam.com> wrote in message
news:OU**************@TK2MSFTNGP12.phx.gbl...
Found this
MyMail.Fields("urn:schemas:httpmail:importance").V alue = 2
It sends the mail but does not set importance?

Mike

"Mike D" <Mi***@nospam.com> wrote in message
news:eS**************@TK2MSFTNGP11.phx.gbl...
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")
myMail.From = "Th*********@ThePound.com"
myMail.To = "my*****@ppdi.com"
myMail.Subject = "Test"
myMail.Importance = 2
myMail.HTMLBody = "Test of Importance"
myMail.Send
Set myMail = Nothing



Jul 19 '05 #4

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

Similar topics

28
by: Paul McGuire | last post by:
Well, after 3 days of open polling, the number of additional votes have dropped off pretty dramatically. Here are the results so far: Total voters: 55 (with 3 votes each) Votes for each choice...
1
by: middletree | last post by:
I've been using CDO to send an email with an Intranet app I have. Can't for the life of me remember where I got this code: .Importance = 1 ' Normal .BodyFormat = 1 ' Plain text .MailFormat =...
3
by: Jason Kistler | last post by:
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("Jason") &...
1
by: simon | last post by:
This works in VB: <td <%# myFunction(DataBinder.Eval(Container.DataItem,"column1"))%>> but in C# doesn't. What is the right sintax to include some text between the html tag in C#? I can't...
0
by: Mikey | last post by:
This sample code demonstrates how to send an email message using CDO and have it set the Outlook Importance property and the Outlook Follow Up reminder attributes in the recipient's InBox. The...
3
by: Manuel | last post by:
I'm trying to compile glut 3.7.6 (dowbloaded from official site)using devc++. So I've imported the glut32.dsp into devc++, included manually some headers, and start to compile. It return a very...
2
by: Donny Riyadi | last post by:
Hi all, any idea, how to make a sql query, which the results can be ordered by the importance ? FOr example if I search a table which contains a list of meta tags of websites. I want, that the...
7
by: InuY4sha | last post by:
Hi all :) sorry.. I know this is a very mean question but I can't get the following couple of lines: static int dev_init(struct net_device *dev); struct net_device my_device = { init: dev_init,...
1
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...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
1
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...
1
by: ezappsrUS | last post by:
Hi, I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...
0
by: jack2019x | last post by:
hello, Is there code or static lib for hook swapchain present? I wanna hook dxgi swapchain present for dx11 and dx9.

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.