CDONTS Formatting Question

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??
 
T

Thomas A. Rowe

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??
 
S

Stefan B Rusynko

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??
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top