Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.

  1. #1

    Default CDO

    We are in the process of upgrading our Intranet server to
    Windows 2K with SP 3 (from NT4.0). We have tons of ASP
    pgaes using CDONTS to send mail. I understand that we
    will need to recode all of these pages to use CDO,
    however, I can not get it to work and am very frustrated.
    Here is my code - can any one tell me what I am doing
    wrong.

    Set objMessage = CreateObject("CDO.Message")
    objMessage.Subject = "This is a test subject"
    objMessage.Sender = "me@ourplace.com"
    objMessage.To = "me@ourplace.com"
    objMessage.TextBody = "This is me testing the email"


    objMessage.Configuration.Fields.Item_
    ("http://schemas.microsoft.com/cdo/configuration/sendusing"
    ) = 2

    objMessage.Configuration.Fields.Item_
    ("http://schemas.microsoft.com/cdo/configuration/smtpserver
    ") = "smtp.ourplace.com"

    objMessage.Configuration.Fields.Item_
    ("http://schemas.microsoft.com/cdo/configuration/smtpserver
    port") = 25


    objMessage.Configuration.Fields.Update
    objMessage.Send
    BC Guest

  2. #2

    Default Re: CDO

    > I understand that we
    > will need to recode all of these pages to use CDO,
    no, CDONTS is still supported under Windows 2000 - though it is
    deprecated, and therefore upgrading is recommended. However it's not
    essential.

    there's a useful article at [url]www.aspfaq.com[/url] on the subject of
    CDO.Message, actually....




    ________________________________________
    Atrax. MVP, IIS
    [url]http://rtfm.atrax.co.uk/[/url]

    newsflash : Atrax.Richedit 1.0 now released.
    [url]http://rtfm.atrax.co.uk/infinitemonkeys/components/Atrax.RichEdit/[/url]

    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Atrax Guest

  3. #3

    Default Re: CDO

    Don't know if this helps any but:

    Instead of:
    objMessage.Sender

    I've used this and it worked:
    objMessage.From

    Best regards,
    J. Paul Schmidt, Freelance ASP Web Developer
    [url]http://www.Bullschmidt.com[/url]
    ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...


    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Bullschmidt Guest

  4. #4

    Default CDO

    Hello, I'm trying to add a stored procedure to my server

    <%
    sch = "http://schemas.microsoft.com/cdo/configuration/"

    Set cdoConfig = CreateObject("CDO.Configuration")

    With cdoConfig.Fields
    .Item(sch & "sendusing") = 2 ' cdoSendUsingPort
    .Item(sch & "smtpserver") = "<mail.photo4me.com>"
    .update
    End With

    Set cdoMessage = CreateObject("CDO.Message")

    With cdoMessage
    Set .Configuration = cdoConfig
    .From = "mail@photo4me.com"
    .To = "jon@spl.at"
    .Subject = "Sample CDO Message"
    .TextBody = "This is a test for CDO.message"
    .Send
    End With

    Set cdoMessage = Nothing
    Set cdoConfig = Nothing
    %>


    But I'm getting syntax error? any ideas?

    Thanks
    jon

    --
    Upgrade your 6mb to a 25mb mail box!
    [url]http://www.spl.at[/url]


    Jon Pankhurst Guest

  5. #5

    Default Re: CDO


    "Jon Pankhurst" <photographers@photo4me.com> wrote in message
    news:%23C0h1iCIEHA.3240@TK2MSFTNGP12.phx.gbl...
    > Hello, I'm trying to add a stored procedure to my server
    ?????

    > <%
    > sch = "http://schemas.microsoft.com/cdo/configuration/"
    > [snip]
    > Set cdoConfig = Nothing
    > %>
    > But I'm getting syntax error? any ideas?
    What line gives you the error? I don't see any syntactical errors.

    Ray at home


    Ray at Guest

  6. #6

    Default Re: CDO

    Thanks I have sorted it now...

    Regards
    Jon

    "Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
    message news:ud85CPDIEHA.3444@TK2MSFTNGP11.phx.gbl...
    >
    > "Jon Pankhurst" <photographers@photo4me.com> wrote in message
    > news:%23C0h1iCIEHA.3240@TK2MSFTNGP12.phx.gbl...
    > > Hello, I'm trying to add a stored procedure to my server
    >
    > ?????
    >
    >
    > > <%
    > > sch = "http://schemas.microsoft.com/cdo/configuration/"
    > > [snip]
    > > Set cdoConfig = Nothing
    > > %>
    >
    >
    > > But I'm getting syntax error? any ideas?
    >
    > What line gives you the error? I don't see any syntactical errors.
    >
    > Ray at home
    >
    >

    Jon Pankhurst Guest

  7. #7

    Default cdo

    The solution that you give it was ok but actually I have another problem with
    the same application _when I try to submit the email I have this message in
    explorer

    ? Error Type:
    Server object, ASP 0177 (0x800401F3)
    Invalid class string
    /ptesiki/www/email_02.asp, line 11

    And probably the problem is with the SMTP server




    gtsilimigkas Guest

  8. #8

    Default Re: cdo

    gtsilimigkas wrote:
    > The solution that you give it was ok but actually I have another problem with
    > the same application _when I try to submit the email I have this message in
    > explorer
    >
    > ? Error Type:
    > Server object, ASP 0177 (0x800401F3)
    > Invalid class string
    > /ptesiki/www/email_02.asp, line 11
    >
    > And probably the problem is with the SMTP server
    And what is at line 11?

    If that is within the script that the extension inserts, then the issue is likely that your web host does not have the CDONTS email component installed on thier system. I'd check with them to find out which components they do support and then go from there.

    --
    Danilo Celic
    | Extending Knowledge Daily : [url]http://CommunityMX.com/[/url]
    | Team Macromedia for Dreamweaver : [url]http://macromedia.com/go/team/[/url]
    danilocelic *TMM* Guest

  9. #9

    Default Re: cdo

    Hi danilocelic :)
    First I like to say how much I learned from reading your book " Dreamweaver MX
    2004 Magic ".
    the truth is where can I get the " DW magic mailer"? I know is on the CD cover
    but I read it from an ebook and trying to follow the lesson. "Project 8 Sending
    a Form to Email". Its any other way that I can continue the lession without the
    Xtension?

    Thanx
    pixel

    pixelbill Guest

  10. #10

    Default cdo

    I try to develop the application in my computer. I have installed the SMTP
    service in windows XP and I think that it works. After that I Will put it in
    the web host.
    The message in the explorer as I tell you is
    > ? Error Type:
    > Server object, ASP 0177 (0x800401F3)
    > Invalid class string
    > /ptesiki/www/email_02.asp, line 11
    And in line 11 in the code is
    Set objCDO = Server.CreateObject("CDONTS.NewMail")

    I have the same message also with other CDONTS email component that I try
    (different line and name for the also CDONTS email component)
    I have this message when I try to submit the email form in preview page

    Thanks again for the help


    gtsilimigkas Guest

  11. #11

    Default Re: cdo

    pixelbill wrote:
    > Hi danilocelic :)
    > First I like to say how much I learned from reading your book " Dreamweaver MX
    > 2004 Magic ".
    > the truth is where can I get the " DW magic mailer"? I know is on the CD cover
    > but I read it from an ebook and trying to follow the lesson. "Project 8 Sending
    > a Form to Email". Its any other way that I can continue the lession without the
    > Xtension?
    Glad you liked it.

    From what I understand , the extension is part of the support files for the book and in hard cover comes only on the CD. For an eBook version of it, I'm not sure where the support files go. Where did you read the eBook version of it? I'm pretty sure that Safari (a subscription ebook service) has the files avialble for the books they offer, and I know that they had the book available, so the file sshoul have been available there.

    If you were just reading the chapter that was posted as an example of the books contents, then the support files for it are not available.

    In case it matters, the code inserted by that extension is quite similar to the CDO extension that you're using, and for an ASP page, would give you the same error that you're seeing now, so it wouldn't be of any assistance to you.

    You do need to check with your host to see which email components that you can use. Report that back to the forum and someone should be able to suggest an extension that fits your specific needs.

    --
    Danilo Celic
    | Extending Knowledge Daily : [url]http://CommunityMX.com/[/url]
    | Team Macromedia for Dreamweaver : [url]http://macromedia.com/go/team/[/url]
    danilocelic *TMM* Guest

  12. #12

    Default Re: cdo

    gtsilimigkas wrote:
    > I try to develop the application in my computer. I have installed the SMTP
    > service in windows XP and I think that it works. After that I Will put it in
    > the web host.
    > I have the same message also with other CDONTS email component that I try
    > (different line and name for the also CDONTS email component)
    > I have this message when I try to submit the email form in preview page
    That means that you do not have the CDONTS component on your system. Having the SMPT service is not the same thing as a email component such as CDOONTS. I think that Windows XP does not come with CDONTS, or the newer versionof it, CODSYS. You probably have to get them at Microsoft's. Not sure where.

    I'd suggest that you upload the pages to the host's server, and test them, they may just work for you.

    --
    Danilo Celic
    | Extending Knowledge Daily : [url]http://CommunityMX.com/[/url]
    | Team Macromedia for Dreamweaver : [url]http://macromedia.com/go/team/[/url]
    danilocelic *TMM* Guest

  13. #13

    Default Re: cdo

    Hello everyone, Im ric and i'm just wondering why i still haven't receive a
    single email eventhough i already added some items on the database. I used CDO
    Mail component, running on IIS Server (for now...to be uploaded on an ASP
    server), and ASP VBScript. I tried to test it locally using my IIS and it seems
    that it doesn't work...any suggestions?

    ric stryker Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139