Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 9th, 2003, 07:57 AM
Registered User
 
Join Date: Sep 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to princemirza80
Default How to format the ObjMessage.Textbody for CDO ASP

I am newbie to ASP reading Beginning ASP 3.0 Recently I have written a code for CDOSYS form for ASP and was terribly confused in the ObjMessage.Body statement, althought somehow i got the below code working, But When I received the mail after filing the form it was all fields together I cannot make out which field resembles what field. I cannot understand How to format the textbody message so I can view all fields in the email message seperate. Plz Help?

objMessage.Textbody = Request.Form ("varFirst_Name:") & Request.Form ("varLast_Name") & Request.Form ("varJob_Title") & Request.Form ("varCompany_Name") & Request.Form ("varMail_Line1") & Request.Form ("varMail_Line2") & Request.Form ("varMail_Line3") & Request.Form ("varCity") & Request.Form ("varState") & Request.Form ("varArea_Zip") & Request.Form ("varCountry") & Request.Form ("varCountry_code_tel") & Request.Form ("vararea_code_tel") & Request.Form ("varTel_number") & Request.Form ("varCountry_code_Fax") & Request.Form ("varArea_code_Fax") & Request.Form ("varNum_Fax") & Request.Form ("varEmail") & Request.Form ("varComments")

----------------------------------------------------------------------
Result from the above coding is
[email protected]lskjfsdlfsd
fsd
fsd

Kind Regards,
Prince Mirza







Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert Rich Text Format to Ordinary Format in ASP Andraw Classic ASP Basics 1 August 31st, 2007 10:05 AM
Problems with CDO and ASP nancy Classic ASP Professional 2 April 7th, 2006 08:13 AM
ASP CDO MAIL cullancrothers Classic ASP Professional 2 February 24th, 2006 06:16 PM
ASP CDO.Message difficulty crmpicco Classic ASP Basics 0 March 1st, 2005 07:48 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.