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("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "0") 'basic authentication 1
                .Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "xxx@xxxx.com") 'set your username here
                .Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "xxxx") 'set your password here
                .Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout", "240")
                '.Fields.Add("urn:schemas:mailheader:comment").value = "Welcome Msg Sent From ArgoDragon E-Mail Manager"
                '.Fields.Add("urn:schemas:mailheader:x-mailer").value = "VB.net 2005 - ArgoDragon E-Mail Manager"
                '.Fields.Add("urn:schemas:httpmail:importance").value = 2


thx
Johnny
aka Pern
JohnnyAsked:
Who is Participating?
 
etmendzCommented:
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.
0
 
etmendzCommented:
I think the urn:... syntax are for MS Exchange Store, OWA or WebDAV. Are you targetting an MS Exchange Server?
0
 
ajaikumarrCommented:
0
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.

 
GlomCommented:
Hi,

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

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

Glom
0
 
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 either..is there a way to control inportance,priority and xmailer etc fields other then cdo...
and thx how to give points ill take sugestions...

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

thx
0
 
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 fine..so go figure there not in microsoft at all

0
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.