CDONTS Formatting Question

  • Thread starter Thread starter Ed Richter
  • Start date Start date
E

Ed Richter

Using CDONTS to send email message out. Am wondering if there's anything I can do, add tab charactor, or insert a table inside mesaage to make the fields in the message as shown below line up.

Match Date: 1/12/2005 Home Team: Hilton Away Team: Spencerport 2 Partner: Dave Linds
Match Date: 5/18/2005 Home Team: Spencerport Away Team: Greece Arcadia Partner: John Marroco

Code is generated by:

sMailposts =sMailposts & "Match Date: " & G_Date_value & " " & " Home Team: " & Home_value & " " & " Away Team: " & Away_value & " " & " Partner: " & Partner_F_name & " " & Partner_L_name & vbNewLine

Wondering if there's anything I can do within CDONTS to fix this??
 
Yes, but you would need to search for example script on sending HTML email via CDONTS or CDOSYS.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================


Using CDONTS to send email message out. Am wondering if there's anything I can do, add tab
charactor, or insert a table inside mesaage to make the fields in the message as shown below line
up.

Match Date: 1/12/2005 Home Team: Hilton Away Team: Spencerport 2 Partner: Dave Linds
Match Date: 5/18/2005 Home Team: Spencerport Away Team: Greece Arcadia Partner: John
Marroco

Code is generated by:

sMailposts =sMailposts & "Match Date: " & G_Date_value & " " & " Home Team: " & Home_value & "
" & " Away Team: " & Away_value & " " & " Partner: " & Partner_F_name & " " & Partner_L_name
& vbNewLine

Wondering if there's anything I can do within CDONTS to fix this??
 
The tab is vbTab or Chr(9)
As in
sMailposts =sMailposts & "Match Date: " & G_Date_value & vbTab ....

But that may not align your fields (depend on the field value lengths)
See http://www.aspfaq.com/show.asp?id=2474

--




Using CDONTS to send email message out. Am wondering if there's anything I can do, add tab charactor, or insert a table inside
mesaage to make the fields in the message as shown below line up.

Match Date: 1/12/2005 Home Team: Hilton Away Team: Spencerport 2 Partner: Dave Linds
Match Date: 5/18/2005 Home Team: Spencerport Away Team: Greece Arcadia Partner: John Marroco

Code is generated by:

sMailposts =sMailposts & "Match Date: " & G_Date_value & " " & " Home Team: " & Home_value & " " & " Away Team: " &
Away_value & " " & " Partner: " & Partner_F_name & " " & Partner_L_name & vbNewLine

Wondering if there's anything I can do within CDONTS to fix this??
 
Back
Top