ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old July 19th, 2000, 02:56 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 23
E-mail

<i><b>Originally posted by : arnold (arnold@sajan.com)</b></i><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 />

Reply With Quote
  #2  
Old July 19th, 2000, 06:54 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
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 />

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingASP Development > E-mail


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT