cdo problem with sending email

Posted on 2004-10-25
Last Modified: 2010-04-24
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
Question by:Johnny
    LVL 6

    Assisted Solution

    I think the urn:... syntax are for MS Exchange Store, OWA or WebDAV. Are you targetting an MS Exchange Server?
    LVL 11

    Assisted Solution

    LVL 4

    Assisted Solution


    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

    LVL 6

    Accepted Solution

    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.

    Author Comment

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


    Author Comment

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


    Author Comment

    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


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Product Review - Android Remix

    Come along for the ride with our Senior Product Manager, Brian Matis, as he reviews the Android Remix.

    Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    This video Micro Tutorial is the second in a two-part series that shows how to create and use custom scanning profiles in Nuance's PaperPort 14.5 ( But the ability to create custom scanning profiles a…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    913 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now