Click to See Complete Forum and Search --> : Ground Zero Emailing
dimava
Feb 17th, 2001, 02:47 PM
hi, I am at ground ZERO with cgi/perl/asp/similar stuff
what I am trying to do is to get the user to fill out a survey on my website, and then have the survey be emailed to me. How can I do this?
By The Way, I am using Microsoft Personal Web sever, so I can run all the scripts, I just don’t know how
I have previously downloaded a bunch of cgi/perl scripts, but they don’t make any sense to me
thanks, dimava
sail3005
Feb 17th, 2001, 04:39 PM
This script helped me greatly, it works great, and helpedme to learn a lot about this in ASP.
http://www.brainjar.com/asp/formmail/
JoshT
Feb 19th, 2001, 08:01 AM
Microsoft web servers do not support Perl out of the box, you probably should try ASP first. Also, being able to send mail depends on the installation of a mail component. IIS running on NT Server includes CDONTS for handling email, but PWS does not. You are going to have to install a third-party component in order to be able to send mail (unless you can write your own).
Josh
dimava
Feb 19th, 2001, 01:06 PM
thanks Sail3005, but for some reason i'm too stupid to understand it (well it didn't work for me)
and josh, can you point my in the right direction of a 3rd party software
thanks
JoshT
Feb 20th, 2001, 10:09 AM
Do a search for ASPMail or try looking on ASP sites. I've been using CDONTS as I have IIS running on NT Server at the moment.
Josh
Lord Orwell
Feb 27th, 2001, 01:27 AM
why dont you have javascript run this command:
email:dimava@wherever.com?subject=farfegnugen?placemessagehere.
My syntax might be a little wrong, since i haven't done this in a while, but basically, if you do this correctly, the user gets a popup message saying that they are sending information yes/no. They click yes, and it gets emailed. Older versions of ie and netscape don't even ask. They just email.
dimava
Feb 27th, 2001, 01:54 PM
i want them to fill out a form, and have it emailed to me, I dont want them to have the EMAIl window like open
jdavison
Feb 27th, 2001, 02:08 PM
Does it absolutely have to be email. You can always make a small acess db and dump the info in there. Other than that or the popup email. unless you running nt you wont beable to use cdonts.
dimava
Feb 27th, 2001, 02:14 PM
how can I???????/
jdavison
Feb 27th, 2001, 02:29 PM
you just need to create an access db with whatever info you want on it in a form and then have the forms action goto this page below. you can call it whatever you want just make sure you put in all the request you need for each field and place it in the same order as the fields in your insert statement. If you need anymore help with this, i can help you more through email tonight. My email is jdavison2000@yahoo.com. The code below will be an asp page with no html in it. The user will never see this page.
<%
set cn=server.createobject("adodb.connection")
cn.ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=<path to db>\<db file>;Persist Security Info=False"
cn.Open
set cmd=server.CreateObject("adodb.command")
cmd.ActiveConnection=cn
variable=Request.Form("field name")
'repeat this for all the form fields and use the
'variable as values in the insert below
cmd.CommandText="INSERT INTO <table name> (<fields seperated by commas) values (" + <value1> + ", '" + <value2> + "', '"... + "')"
cmd.Execute
response.redirect("whatever page you want them to go too")
%>
dimava
Feb 27th, 2001, 08:51 PM
wnca you please tell me what the code for the FORMs on the htm page might be?
and what 'column' do I make in MS access?
thanks
dimava
jdavison
Feb 28th, 2001, 09:19 AM
Why dont you email me what you need and i'll set it up for you. would be easier and you could see how everything should be setup that way.
dimava
Feb 28th, 2001, 02:19 PM
sure, thanks a lot!!! whats your email?
jdavison
Feb 28th, 2001, 02:23 PM
jdavison2000@yahoo.com
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.