Why doesn't this code work?

Results 1 to 2 of 2

Thread: Why doesn't this code work?

  1. #1
    Join Date
    Dec 1969

    Default Why doesn't this code work?

    CDO is installed on our servers here and, in fact, works on other apps I have created. So, is there something wrong in this code that I am not seeing?<BR><BR>&#060;%@Language=VBScript%&#062;<BR >&#060;%Option Explicit%&#062;<BR>&#060;%<BR>&#039create variables and set values<BR>Dim objNewMail, strRecipient, strTo, strFrom, strBody, strSubject<BR>strTo = "jim.dvorak@oc.edu"<BR>strFrom = request("name") & " [" & request("email") & "]"<BR>strBody = request("comments")<BR>strSubject = "Response from the Soundings web site."<BR><BR>&#039create mail object, put in the variable info, and send it<BR>Set objNewMail = Server.CreateObject("CDONTS.NewMail")<BR>objNewMai l.To = strTo<BR>objNewMail.From = strFrom<BR>objNewMail.Subject = strSubject<BR>objNewMail.Body = strBody<BR>objNewMail.Send<BR><BR>&#039clear the memory<BR>set objNewMail = Nothing<BR><BR>&#039redirect to confirmation page<BR>Response.Redirect("http://ed.oc.edu/intra/soundings/confirm.htm")<BR>%&#062;<BR><BR>Any help would be nice. This is on an intranet site that resides in a different folder on the server than the ones that work. But, once the CDONTS.dll is registered on the server, isn&#039t it available to all folders?

  2. #2
    Join Date
    Dec 1969

    Default RE: Why doesn't this code work?

    what sort of error do you get?<BR><BR>jason

Posting Permissions

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