Form Results to a Database and an Email Address

  • Thread starter Thread starter Glenn
  • Start date Start date
G

Glenn

I have a Microsoft White Paper on the above captioned article. It is for
Microsoft FrontPage 2000.

I am using FrontPage 2002 on this machine (and have 2003 on another, will be
upgrading this one soon).

I have followed the directions, and I keep getting an error when I try to
submit the form. The error is:

Thank you for submitting your information!
You will receive an e-mail shortly. The e-mail was sent using the following
information:

Sent To:
From : Microsoft PSS Sample Page


Subject: Send to Database and E-mail

Content:

Microsoft VBScript runtime error '800a000d'

Type mismatch: 'ParseBody'

/lane/Email.asp, line 28



Are the directions different for XP or 2003?



I'm not sure if I have the server set up properly. I am running a Windows
2000 server with MS Exchange 2000. Today, I downloaded and installed MDAC.

In the directions on page 2 of the white paper, it tells how to set up an
STMP host. When I go to Internet Services Manager, "Default SMTP Virtual
Server" isn't one of my choices.

For what it's worth, I can create a form using Front Page and have it
successfuly email the results to me when submitted. So, I think the SMTP
thing is working.



Is there anything I need to do to make sure that MDAC is set up properly?



THanks.
 
The solution is the same no matter which version of FP you are using. ASP uses CDONTS or CDOSYS to
send mail. CDOSYS doesn't use the SMTP Server/service.

For issues with your server configuration in using either CDONTS or CDOSYS, suggest you post to the
Windows Server newsgroup.

However, what is on Line 28?


--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
Line 28 is: Response.Write(ParseBody(strBody))

I'll post to the Windows Server Newsgroup as well.

Thanks.
 
What other lines does ParseBody appear on? Paste in the complete lines.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
<p><font face="Verdana" color="#FF0000"><b>Thank you for submitting your
information!<br>
</b></font><font face="Verdana" size="2">You will receive an e-mail
shortly.&nbsp;
The e-mail was sent using the following information:</font></p>
<p><b><font face="Verdana" size="2">Sent To:
<% '%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Response.Write Request.Form("EMail")
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%><br>
From&nbsp;&nbsp;&nbsp; : Microsoft PSS Sample Page</font></p>
<p></p>
<p><font face="Verdana" size="2">Subject: Send to Database and
E-mail</font></p>
<p><font face="Verdana" size="2">Content:
<% '%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
' Call the ParseBody function and pass the strBody string to it.
' This will replace the Chr(13) characters with <br> tags in the HTML.
Response.Write(ParseBody(strBody))
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%> </font></p>
<hr noshade size="1" style="color: #000000">
<p>&nbsp;</p>
</b>
 
You seem to be missing a Include page that has the ParseBody function.

Here is a resource for write an CDONTS email script:
http://www.powerasp.com/content/hintstips/asp-email.asp


You can locate others by typing the following in your IE address bar as:

? ASP Sending Email

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
Back
Top