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?

[Webinar] Streamline your web hosting managementRegister Today

x
 
etmendzConnect With a Mentor Commented:
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
 
etmendzConnect With a Mentor Commented:
I think the urn:... syntax are for MS Exchange Store, OWA or WebDAV. Are you targetting an MS Exchange Server?
0
 
ajaikumarrConnect With a Mentor Commented:
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
GlomConnect With a Mentor Commented:
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
All Courses

From novice to tech pro — start learning today.