Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Format of body of e-mail using ASPEmail
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

RaiderUK
Average Member

United Kingdom
577 Posts

Posted - 02 April 2001 :  19:22:05  Show Profile  Send RaiderUK a Yahoo! Message
Does anyone know how I can format the body of an e-mail using the ASPEmail componant?

i.e. i would like the text to like this:

Dear Sir
Text Text
line 2 Text

what do i put in to move to another line?

Mail.Body = "Line 1" ?


HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 02 April 2001 :  20:09:58  Show Profile  Visit HuwR's Homepage
use vbNewLine,

strMessage = "Dear Sir" & vbNewLine
strMessage = strMessage & "Text Text" & vbNewLine




Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 02 April 2001 :  20:14:39  Show Profile
Then you use:

Mail.Body = strMessage

But HuwR, can't he use vbCrlf?

Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 02 April 2001 :  20:36:12  Show Profile  Visit HuwR's Homepage
you should use vbNewLine because it is platform independant,
vbcrLf writes both a carriage return and Line feed regardless of platform, vbNewline does not, it writes the correct EOL marker depending on the platform

Go to Top of Page

RaiderUK
Average Member

United Kingdom
577 Posts

Posted - 02 April 2001 :  20:38:54  Show Profile  Send RaiderUK a Yahoo! Message
thanks alot working good now.
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 02 April 2001 :  20:43:47  Show Profile  Visit HuwR's Homepage
you can also use tabs by using vbTab, just thought you might find it useful, since tabs format better than spaces.

Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 03 April 2001 :  07:32:44  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
hummm, i have always used vbCrLF, i guess i should start using vbNewLine

Brad
Go to Top of Page

RaiderUK
Average Member

United Kingdom
577 Posts

Posted - 03 April 2001 :  09:54:31  Show Profile  Send RaiderUK a Yahoo! Message
are there any other commands which may be useful when doing things like this?

Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 03 April 2001 :  10:17:25  Show Profile  Visit HuwR's Homepage
Not really

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.26 seconds. Powered By: Snitz Forums 2000 Version 3.4.07