PDA

View Full Version : syntax question


gcapp
09-24-2002, 03:33 AM
I have a simple syntax question that I can't figure out.

I have this asp code:

StrALL = StrALL & "Event Location" & vbcrlf
StrALL = StrALL & "State: " & StrLocState & vbcrlf
StrALL = StrALL & "Region: " & StrLocRegion & vbcrlf
StrALL = StrALL & "Country: " & StrLocCounty & vbcrlf

When I get an email the results come back like this:
Event Location
State: New York
Region: Western
Country: USA

How can I change the line of code so the line
Event Location will appear in my email in bold text?

AND

How can I change the line of code to have a break in the email so the line come out like this:

Event Location
State: New York
----break------
Region: Western

Any help will be appreciated.

Gary

allida77
09-24-2002, 04:14 AM
How can I change the line of code so the line
Event Location will appear in my email in bold text?

If the email is HTML format:
StrALL = StrALL & "<b>Event Location</b>" & vbcrlf

I would think that the email would have to be HTML to get bold lettering.

How can I change the line of code to have a break in the email so the line come out like this:

StrALL = StrALL & "State: " & StrLocState & vbcrlf
StrALL = StrALL & "-----break------ " & vbcrlf
StrALL = StrALL & "Region: " & StrLocRegion & vbcrlf

whammy
09-26-2002, 01:07 AM
I cannot explain it any better than allida77.

Here's an example EMPTY CDONTS email script:

Set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.To = ""
objMail.From = ""
objMail.cc = ""
objMail.bcc = ""
'objMail.mailFormat = 0 'This is for HTML
'objMail.bodyFormat = 0 'This is for HTML

MessageBody = "" & CHR(13)
MessageBody = MessageBody & "" & CHR(13)

objMail.Subject = ""
objMail.Body = MessageBody
objMail.Send
Set objMail = Nothing