Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
Azrael MacCool #1
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
-
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... -
Assignment
Hi - I am taking a course and am supposed to send a message to the newsgroup. This is it. Hans -
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... -
[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,... -
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... -
wizardofdata #2
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
-
Murray *TMM* #3
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
-
JEREMY #4
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
-
wizardofdata #5
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
-
Azrael MacCool #6
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
-
wizardofdata #7
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



Reply With Quote

