467,912 Members | 1,400 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,912 developers. It's quick & easy.

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
  • viewed: 5275
Share:
3 Replies
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by middletree | last post: by
1 post views Thread by simon | last post: by
3 posts views Thread by Manuel | last post: by
2 posts views Thread by Donny Riyadi | last post: by
7 posts views Thread by InuY4sha | last post: by
1 post views Thread by Whyatt | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.