[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

4.2

ASP Script to email form responses

Asked by scotgwhiz in Active Server Pages (ASP)

Tags: cdosys, mysex, vbscript

I have hacked together an ASP script to email my Online form responses to me. The form works when I use a mailto: in the form action but I would like to use a CDOSYS script instead. Below is the script I am calling from my form action. I think it is close but I am a complete newbie to ASP. Your suggestions would be appreciated.

<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<%
'First lets Dim all the variables we need
Dim MyMail
Dim MyBody
Dim MyEmail
Dim MyFirstname
Dim MyLastname
Dim MyMiddleinitial
Dim MySex
Dim MyAreastudies
Dim MyDatesubmitted
Dim MyLocaladdress
Dim MyCity
Dim MyState
Dim MyPermaddress
Dim MyPermcity
Dim MyPermstate
Dim MySex
Dim MyPhonenumber
Dim MyCSUID
Dim MyAcademicadvisor
Dim MyASadvisor
Dim MyMajor
Dim MyDepartment
Dim MyCurrentterm
Dim MyYearofGraduation
Dim MyAcademicyear
Dim MyComment


'Now lets get some values for the variables from the form
MyEmail = Request.Form("Email")
MyFirstname = Request.Form("FirstName")
MyLastname = Request.Form("LastName")
Mymiddleinitial = Request.Form("MI")
MySex = Request.Form("sexselect")
MyDatesubmitted = Request.Form("DateSubmitted")
MyAreastudies = Request.Form("AsianStudies")
MyLocaladdress = Request.Form("LocalAddress")
MyCity = Request.Form("City")
MyState = Request.Form("State")
MyPermaddress = Request.Form("PermAddress")
MyPermcity = Request.Form("PermCity")
MyPermstate = Request.Form("PermState")
MyPhonenumber = Request.Form("PhoneNumber")
MyCSUID = Request.Form("CSUID")
MyAcademicadvisor = Request.Form("AcademicAdvisor")
MyASadvisor = Request.Form("ASAdvisor")
MyMajor = Request.Form("Major")
MyDepartment = Request.Form("Department")
MyCurrentterm = Request.Form("CurrentTerm")
MyYearofGraduation = Request.Form("YearofGraduation")
MyAcademicyear = Request.Form("AcademicYear")
MyComment = Request.Form("Comment")

'Now lets build the body of the email from the data in the form
MyBody = "First Name: "& MyFirstname & vbcrlf
MyBody = MyBody & "Last Name: "& MyLastname & vbcrlf
MyBody = MyBody & "Middle Initial: "& Mymiddleinitial & vbcrlf
MyBody = MyBody & "Email: "& MyEmail & vbcrlf
MyBody = MyBody & "Sex: "& MySex & vbcrlf & vbcrlf
MyBody = MyBody & "Date Submitted: "& MyDatesubmitted & vbcrlf
MyBody = MyBody & "Area Study: "& MyAreastudies & vbcrlf
MyBody = MyBody & "Local Address: "& MyLocaladdress & vbcrlf
MyBody = MyBody & "City: "& MyCity & vbcrlf
MyBody = MyBody & "State: "& MyState & vbcrlf
MyBody = MyBody & "Perm Address: "& MyPermaddress & vbcrlf
MyBody = MyBody & "Perm City: "& MyPermcity & vbcrlf
MyBody = MyBody & "Perm State: "& MyPermstate & vbcrlf
MyBody = MyBody & "Phone Number: "& MyPhonenumber & vbcrlf
MyBody = MyBody & "CSUID: "& MyCSUID & vbcrlf
MyBody = MyBody & "Academic Advisor: "& MyAcademicadvisor  & vbcrlf
MyBody = MyBody & "Area Studies Advisor: "& MyASadvisor & vbcrlf
MyBody = MyBody & "Major: "& MyMajor & vbcrlf
MyBody = MyBody & "Current Term: "& MyCurrentterm & vbcrlf
MyBody = MyBody & "Department: "& MyDepartment & vbcrlf
MyBody = MyBody & "Year of Graduation: "& MyYearofGraduation & vbcrlf
MyBody = MyBody & "Academic Year: "& MyAcademicyear & vbcrlf
MyBody = MyBody & "Comment: "& MyComment  & vbcrlf & vbcrlf
MyBody = MyBody & MyComment


'Now lets put the variables and other information we need into the mailing script
Set MyMail = CreateObject("CDO.Message")
MyMail.From = MyEmail
MyMail.To = "myemail@blabla.edu"
MyMail.Subject = "Test message using CDOSYS"
MyMail.TextBody = MyBody
MyMail.Send
Set MyMail= nothing
Response.Write("Your e-mail has been sent")
%>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>

<body>

</body>
</html>
[+][-]04/25/06 02:12 PM, ID: 16538681Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: Active Server Pages (ASP)
Tags: cdosys, mysex, vbscript
Sign Up Now!
Solution Provided By: irwinpks
Participating Experts: 2
Solution Grade: A
 
[+][-]04/25/06 01:45 PM, ID: 16538383Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/25/06 02:01 PM, ID: 16538550Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/25/06 02:29 PM, ID: 16538847Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/25/06 02:36 PM, ID: 16538906Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/25/06 02:38 PM, ID: 16538921Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/25/06 02:40 PM, ID: 16538942Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/25/06 02:42 PM, ID: 16538969Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/25/06 02:46 PM, ID: 16538997Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/25/06 02:51 PM, ID: 16539034Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/25/06 02:52 PM, ID: 16539050Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/25/06 02:53 PM, ID: 16539055Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/25/06 02:53 PM, ID: 16539056Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/25/06 02:53 PM, ID: 16539061Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/25/06 03:06 PM, ID: 16539147Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/25/06 03:08 PM, ID: 16539171Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/25/06 03:11 PM, ID: 16539183Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/25/06 03:18 PM, ID: 16539252Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/25/06 03:21 PM, ID: 16539272Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/25/06 03:23 PM, ID: 16539287Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/25/06 03:31 PM, ID: 16539342Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/25/06 03:46 PM, ID: 16539442Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/25/06 03:46 PM, ID: 16539446Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/25/06 03:48 PM, ID: 16539464Assisted Solution

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]04/25/06 04:19 PM, ID: 16539669Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/25/06 04:20 PM, ID: 16539672Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/25/06 04:23 PM, ID: 16539695Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/25/06 04:26 PM, ID: 16539721Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/25/06 04:32 PM, ID: 16539748Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92