
July 19th, 2000, 06:54 PM
|
|
Contributing User
|
|
Join Date: Dec 2002
Posts: 14,575
  
Time spent in forums: < 1 sec
Reputation Power: 23
|
|
|
<i><b>Originally posted by : Padmaja Tallavajhala (coolpersona@hotmail.com)</b></i><br /> request for all the variables of the previous forms and use that as the body <br /> of the message<br /><br />stEmailFrom = Request.Form("Email")<br />(In my case, I have an email being passed on, but you can hard code the email address as follows:<br />stEmailFrom = "abc@abc.com" Similarly you can do it for the receiving person.)<br /><br />stEmailTo = Request.Form("SendTo")<br /><br />'stBody = stBody & "Employee ID: " & Request.Form("EmployeeID") & vbCrLf<br />'stBody = stBody & "Employee Name: " & Request.form("empName") & vbCrLf<br />'stBody = stBody & "Confidential: " & Request.form("Confidential") & vbCrLf<br />'stBody = stBody & "Reason: " & Request.Form("Reason") & vbCrLf<br />'stBody = stBody & "Other: " & Request.Form("Other") & vbCrLf<br />'stBody = stBody & "Destination: " & Request.Form("Destination") & vbCrLf<br />'stBody = stBody & "Air Tickets Needed: " & Request.Form("tickets") & vbCrLf<br />'stBody = stBody & "Seating Preference: " & Request.Form("seating") & vbCrLf<br />'stBody = stBody & "Date Of Departure: " & Request.Form("departdate") & vbCrLf<br />'stBody = stBody & "Departure Time: " & Request.Form("departtime") & vbCrLf<br />'stBody = stBody & "Departure AM or PM: " & Request.Form("depart") & vbCrLf<br />'stBody = stBody & "Date of Return: " & Request.Form("returndate") & vbCrLf<br />'stBody = stBody & "Return Time: " & Request.Form("returntime") & vbCrLf<br />'stBody = stBody & "Return AM or PM: " & Request.Form("return1") & vbCrLf<br />'stBody = stBody & "Sleep Rooms Needed: " & Request.Form("sleeprooms") & vbCrLf<br />'stBody = stBody & "Share Rooms Needed: " & Request.Form("ShareRooms") & vbCrLf<br />'stBody = stBody & "Type of Rooms Needed: " & Request.Form("Roomtype") & vbCrLf<br />'stBody = stBody & "Date of Arrival: " & Request.Form("arrdterm") & vbCrLf<br />'stBody = stBody & "Date of Departure: " & Request.Form("dptdterm") & vbCrLf<br />'stBody = stBody & "Rental Car: " & Request.Form("rentalCar") & vbCrLf<br />'stBody = stBody & "Car Size Preferred: " & Request.Form("CarSize") & vbCrLf<br />'stBody = stBody & "Special Requests: " & Request.Form("requests") & vbCrLf<br /><br />'stBody = stBody & vbCrLf & vbCrLf<br /><br />'set oMail = server.CreateObject("CDONTS.NewMail")<br /><br />'oMail.from = stEmailFrom<br />'oMail.To = stEmailTo<br />'oMail.CC = stEmail<br />'oMail.Subject = "Request for Travel Arrangement"<br />'oMail.Body = stBody<br /><br />'oMail.Send<br /><br />'set oMail = Nothing<br /><br />This should work except that you should change the variable names that corresponds to<br />your specific ASP page.<br /><br />Hope this helps,<br />Padmaja.<br /><br />------------<br />arnold at 7/19/2000 11:56:09 AM<br /><br />I have a couple of forms on web. I use sessions to collect all the variables on them and pass them along .I want to include them into an E-mail form and send it out. I am using CDONTS but I do not know how put these variable(collected data from the different forms) onto the e-mail.I can send the HTML e-mail but it only has the fieldnames without any data.<br /><br />any ideas will be highky appreciated<br /><br />
|