Wrox Programmer Forums
|
ASP CDO As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP CDO 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 November 24th, 2004, 02:34 AM
Authorized User
 
Join Date: Sep 2004
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Default Formating text in Body Message

Hi,

I m sending a mai using "CDO.Message", it is successfully delivered. My problem is I want to send the Boby test in formateed way.
I m Usingg the following code

txtbody = "Dear Sir" & "<br><br>" & "I haven't Received any response............"

objcdo.TextBody txtbody

message is delivered like

Dear Sir <br><br> I haven't Received any response............

but I want it to be like

Dear Sir

I haven't Received any response............

Pl help me.

Rekha



rekha
__________________
It is always safe to assume, not that the old way is wrong, but that there may be a better way...
*************************
Rekha
 
Old November 24th, 2004, 03:42 AM
Friend of Wrox
 
Join Date: May 2004
Posts: 642
Thanks: 0
Thanked 43 Times in 42 Posts
Default

use
objcdo.HTMLBody = txtbody
instead of
objcdo.TextBody = txtbody

Om Prakash
 
Old November 24th, 2004, 04:55 AM
Authorized User
 
Join Date: Sep 2004
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Prakash

rekha





Similar Threads
Thread Thread Starter Forum Replies Last Post
reading a html doc into outlook body message matpen Word VBA 5 June 21st, 2009 10:19 PM
Formating text bjackman Access VBA 1 August 22nd, 2005 03:04 AM
Message.Body HELP!!!!!!!! PCnGA_30008 General .NET 0 June 30th, 2004 12:33 PM





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