User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP section within the Web Development category of DaniWeb, a massive community of 423,418 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,690 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP advertiser: Lunarpages ASP Web Hosting
Views: 435 | Replies: 1
Reply
Join Date: Jun 2008
Posts: 1
Reputation: SAVAGE77 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
SAVAGE77 SAVAGE77 is offline Offline
Newbie Poster

CDO HELP!

  #1  
Jun 2nd, 2008
I am creating a CDO email page and i would like to know how i can add multiple fields or refference multiple fields in the Body of the Email. Thank You
AddThis Social Bookmark Button
Reply With Quote  
Join Date: May 2008
Posts: 12
Reputation: whisper_101 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
whisper_101 whisper_101 is offline Offline
Newbie Poster

Re: CDO HELP!

  #2  
Jun 3rd, 2008
For each field of data you want to embedd in the email you could do something like this:

  1. <%
  2.  
  3. If Request.Form("txtMessage") <> "" Then
  4. strMessage = Request.Form("txtMessage")
  5. End If
  6.  
  7. Dim strBody
  8.  
  9. strBody = strBody & strMessage & vbCrLf
  10.  
  11. ObjSendMail.TextBody = strBody
  12.  
  13. %>
Last edited by peter_budo : Jun 4th, 2008 at 3:27 am. Reason: Keep It Organized - please use [code] tags
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb ASP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the ASP Forum

All times are GMT -4. The time now is 1:47 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC