cdo problem with sending email

i am trying to set some of the settings in an email such as priority and xmailer etc...

in the code below if i comment out the botton 3 lines it works fine

trying to do any of the bottom 3 lines give error...

how are the bottom 3 line done whast the code to do them..i belive there wrong

                .Fields.Add("", "0") 'basic authentication 1
                .Fields.Add("", "") 'set your username here
                .Fields.Add("", "xxxx") 'set your password here
                .Fields.Add("", "240")
                '.Fields.Add("urn:schemas:mailheader:comment").value = "Welcome Msg Sent From ArgoDragon E-Mail Manager"
                '.Fields.Add("urn:schemas:mailheader:x-mailer").value = " 2005 - ArgoDragon E-Mail Manager"
                '.Fields.Add("urn:schemas:httpmail:importance").value = 2

aka Pern
Who is Participating?
I did some reading and it seems that the urn:schemas syntax are taken from standards. So my guess is you cannot Fields.Add them anymore. Try treating them as existing fields instead. Say:

 .Fields.Item("urn:schemas:mailheader:comment") = "Welcome Msg Sent From ArgoDragon E-Mail Manager"

Have fun.
I think the urn:... syntax are for MS Exchange Store, OWA or WebDAV. Are you targetting an MS Exchange Server?
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.


Put a try-catch directive between your 3 lines that give the error
and use the innerexception to see what really happens

    .Fields.Add("urn:schemas:mailheader:comment").value = "Welcome Msg Sent From ArgoDragon E-Mail Manager"
Catch(ex as Exception)
End Try

JohnnyAuthor Commented:
ok i found the urn fields have to have item as the statement...

i font get errors now but i do not get it to display there a way to control inportance,priority and xmailer etc fields other then cdo...
and thx how to give points ill take sugestions...

JohnnyAuthor Commented:
whats fair to award oints to who and how meny... any sugestions?

JohnnyAuthor Commented:
i guess it wont work so i devided the point as i used um...

its not gonna work..wish there was a way!!

php does it go figure there not in microsoft at all

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.