Help with an assignment.

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default Help with an assignment.

    I'm working out of the textbook, Macromedia Dreamweaver MX Dynamic
    Applications, Advanced, Training from the Source, by Jeffrey Bardzell. I'm on
    Lesson 6, and in this lesson, I should be using ASP to create a page that sends
    me an email message. Well, it keeps coming up "The page cannot be displayed".
    On this screen, it says that there's a problem with a certain line of code, but
    it's identical to what's in the book. Well, one thing that might be a problem
    is that I'm using a different version of Dreamweaver than the book. I'm using
    2004, and this book is for 2002 or 2003, I'm not sure which. Here's the code,
    using my email address:

    <!--METADATA TYPE="TypeLibrary"
    FILE="CDONTS.DLL"
    VERSION="1.2"
    -->
    <%
    Dim objMessage
    Set objMessage = Server.CreateObject("CDONTS.NewMail")
    objMessage.Send "ecalexan@indiana.edu","ecalexan@indiana.edu","Thi s is the
    Message Subject","This is the message body"
    Set objMessage = Nothing
    %>


    If anybody can help me, I'd appreciate it greatly. And, I need this as soon
    as possible, because without it, I can't continue working on my assignment, and
    then I'd be pretty much screwed. Thanks.

    Azrael MacCool Guest

  2. Similar Questions and Discussions

    1. Old style assignment
      I got the following warning. Can anyone tell me what the new style is? TIA!!! resp, data = h.get('/index.html', nil ) net/http: warning: old...
    2. Assignment
      Hi - I am taking a course and am supposed to send a message to the newsgroup. This is it. Hans
    3. Object assignment
      I'm having trouble creating objects with DOMXML. As I loop through a level of nodes, I'm creating a new element based on the array's key name. The...
    4. [PHP] Object assignment
      Since I can't see the source for append_child(), I'll assume you're using the $key as the index?? If so, try changing it to just a numeric index,...
    5. Parallel Assignment # a,b=c,d=1,2
      If you are really willing to use a replacement for yacc/bison, what about: http://www.antlr.org/pccts133.html Cheers, Sam Quoteing...
  3. #2

    Default Re: Help with an assignment.

    Azrael,

    What is the OS of your server? The code you listed is for CDONTS, which was
    last used on Windows 2000. If you are using Windows XP or 2003, then you need
    to use CDOSYS. CDONTS is no longer used or supported (Windows 2000 used both
    CDONTS and CDOSYS as the coding for SMTP messages).

    wizardofdata Guest

  4. #3

    Default Re: Help with an assignment.

    CDONTS will still work fine, however, on many servers. It's only those with
    IIS6 (I believe) where you must switch.

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "wizardofdata" <wizardofdata@adelphia.net> wrote in message
    news:drf248$bb4$1@forums.macromedia.com...
    > Azrael,
    >
    > What is the OS of your server? The code you listed is for CDONTS, which
    > was
    > last used on Windows 2000. If you are using Windows XP or 2003, then you
    > need
    > to use CDOSYS. CDONTS is no longer used or supported (Windows 2000 used
    > both
    > CDONTS and CDOSYS as the coding for SMTP messages).
    >

    Murray *TMM* Guest

  5. #4

    Default Re: Help with an assignment.

    try something like this:

    <%


    Dim MyMail
    Set MyMail = CreateObject("cdo.message")
    MyMail.To = "an email address"
    MyMail.From = "an email address"
    MyMail.Subject = "this is a test"
    MyMail.TextBody = "this is a test"
    MyMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing")= 2 MyMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp server here" MyMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusername") = "user id here" MyMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "password here" MyMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 MyMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25 MyMail.Configuration.Fields.Update MyMail.SENDSet MyMail = Nothing%>

    JEREMY Guest

  6. #5

    Default Re: Help with an assignment.

    Murray, guess I wasn't clear on this. You can use CDONTS on Win 2000 (IIS 5).
    With the advent of Windows XP and Windows 2003 (IIS 5.1 and IIS 6,
    respectively), you cannot use CDONTS unless you copy the cdonts.dll, install it
    on XP or 2003, and register the dll. If a web host is running 2003, and they
    are willing to install and register cdonsts.dll, I'd like to know.

    Either way, Azrael should do his smtp mail form in CDOSYS vice CDONTS. I
    would wager dollars to donuts he is coding on a windows XP machine, or his host
    is running windows 2003, or if running windows 2000, simply deleted the
    cdonts.dll file. Sure fire way to get users to move to CDOSYS, which in my
    humble opinion, is a much better implementation of the Simple Mail Transfer
    Protocol (SMTP) and the Network News Transfer Protocol (NNTP).

    wizardofdata Guest

  7. #6

    Default Re: Help with an assignment.

    I'm using XP. So, what exactly do I do? I'm not that great at this kind of
    stuff, this is my school's computer, and I'm afraid I might mess something up
    and get expelled or somethign crazy like that. Thanks everybody, for all your
    help so far!

    Azrael MacCool Guest

  8. #7

    Default Re: Help with an assignment.

    Azrael, if you do a google search for cdosys example or go to one of the many
    web sites (asp101, fourguysfromrolla, etc), you can find many examples on the
    web.

    As far as your local machine, you need to have smtp as a service installed and
    "turned on" otherwise the script will die. Further, if you have a firewall
    blocking outgoing messages, then if your script works, your mail will just sit
    in the "badmail" folder. If you can find a cheap web host or a free one for
    testing purposes, you may want to try that.

    As far as your book, what version of dreamweaver are you using? You should
    match your book to the software you're using.

    Good luck and let us know how you do.



    wizardofdata 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