7 replies
html forms are easy to code. using a tool similar to frontpage, you can add forms to it. the main problem here is where to send your page after the submit button has been clicked (the action). you have to indicate your platform (is it unix or iis?).if in unix (say apache server), you use cgi, perl or php. if iis, you use asp.
kindly provide more info.
Allan
by techwine
by techwine
by techwine
by todd parker
Using a Windows Based Web Server means you are probably using IIS as your web platform. That being the case, it would best to write your email application in ASP scripting (VB) behind your web pages, and use the CDONT's object to send through SMTP. Yes - this is the more complicated method if you are new to ASP.
IF you're looking for a quick fix, and don't want to learn anything - Try installing Front Page Server extensions on your site, and then build your form using Front Page. It has built in features that allow you to specify where mail should be sent after the submittal of a form. I do not recommend this approach, as adding FP server extensions is taboo to advanced developers. However, it's quick and extremely dirty, but gets the job done.
If you're going to write ASP (Server Side VB Scipting) (MY RECOMMENDATION), then you can use the following CDONT's code to send the mail:
1.) Make a form that has a method of POST and an action of 'receivingpagename.asp'
2.) Create the receivingpagename.asp page and insert the following code. (Modify to your needs):
<%
BodyTxt = Request.Form("EmailBodyTextFld")
Set objMail = Server.CreateObject("CDONTS.NewMail")
objmail.From = "YourEmail@address.com"
objMail.Subject = Request.Form("SubjectFld")
objMail.To = Request.Form("SendToEmail@Address.com")
objMail.Body = BodyTxt
objMail.Importance = 1
objMail.send
set objmail = nothing
%>
Then of course you might want to stick some HTML in there, something like:
Thanks for sending the email
Questions? email parkerto@saic.com
by techwine
by techwine
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending