Solved

Forms And asp

Posted on 2004-03-22
5
207 Views
Last Modified: 2010-04-25
Hi Im using Dreamweaver Mx and having problems with the forms i have designed. My server is a windows based server and the cgibin used ASP. The forms are online but no info is being forwarded . can I have this info emailed to myself?
0
Comment
Question by:kevindonoghue
5 Comments
 
LVL 23

Expert Comment

by:Saqib Khan
ID: 10650616
What is the Action of your Form?

How you passing Information, which method?

You might need to explain the whole Problem.
0
 
LVL 35

Accepted Solution

by:
mrichmon earned 250 total points
ID: 10651797
You can set up the form to email it to you, but since you have ASP I recommend writing a page that uses the CDONTS email feature of ASP.

Here is a link on how that is done :
http://www.genesis-hosting.com/asp/cdonts.asp
or
http://www.devguru.com/features/tutorials/CDONTS/cdonts.html
or many more can be found by searching google
0
 
LVL 14

Expert Comment

by:Esopo
ID: 10655582
The same mrichmon wrote, with an example of my own. This is the code I use to send me emails through ASP. I have a page with a form pointing to another page containing this code:

****************************
<%
Dim mini, moni, toti, tuti
Dim mail, body, objMail, reply
 
   'The email where you want to send the information (probably yours)
mail = "your@email.com"

     'Get all the form data entered by the user
mini = request.form("mini")
moni = request.form("moni")
toti = request.form("toti")
tuti = request.form("tuti")
 
   'The reply to adress (mainly useless if you are sending the info to yourself)
reply = "Mail to reply <replyto@email.com>"


body = "Suscription information  " & chr(13) & chr(13)
body = body & "This are the weird called variables:" & chr(13)
body = body & "MINI: " & mini & chr(13)
body = body & "MONI: " & moni & chr(13)
'body = body & "TOTI: " & toti & chr(13)
body = body & "TUTI: " & tuti & chr(13)


'Lets send the email
     Set objMail = Server.CreateObject("CDONTS.NewMail")
     objMail.From = reply
     objMail.Subject = "New suscription pending, suscription information"
     objMail.To = mail

     objMail.Body = body
     objMail.Send
     set objMail = nothing

 %>
****************************
This page should also have some "we got your suscription, thank you, now click here" disclaimer.

Just replace the weird called variable names, should be what you need. Still I would read the devguru link mrichmon posted.

Also you might get some errors (might, probably not) while sending the email, if this happens you most likely have a minor security issue, just change some email-related stuff in your server configuration.

Best regards,

Esopo.
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

For those who don't know, Adobe Dreamweaver is a popular commercial web editor that enables you to design, build and manage complex websites. The editor is a WYSIWYG (What You See Is What You Get) web editor, which means that you can create your web…
Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question