cdo importance syntax or sintax

M

Mike D

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 = "(e-mail address removed)"
myMail.To = "(e-mail address removed)"
myMail.Subject = "Test"
myMail.Importance = 2
myMail.HTMLBody = "Test of Importance"
myMail.Send
Set myMail = Nothing
 
M

Mike D

Found this
MyMail.Fields("urn:schemas:httpmail:importance").Value = 2
It sends the mail but does not set importance?

Mike
 
M

Mike D

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,710
Latest member
bernietqt

Latest Threads

Top