Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Send Email With VBScript, and bold some of it?

Status
Not open for further replies.

troyu

Programmer
Nov 21, 2000
185
CA
I am able to send email with VBScript, but my question is, is there any way to bold a selection portion of text within the body of the message? (not all the text, just a portion of it).
 
Straight email is just text, no markup.

Common options however include sending HTML or RTF email text. A lot depends on what options your email component offers. Sometimes you can get away with just creating the HTML or RTF body text, MIME encoding it, and then ramming that through as if it was plain text.

Are you using CDONTS or something else to send your email?
 
troyu,

You did not indicate the email app you are using.

Since your referencing VBScript, one must make the assumption it is a flavor of Windows.

Windows NT has CDONTS, Win2000 has CDONTS and CDOSYS and XP I assume has CDOSYS available.

If your using CDONTS or CDOSYS, you can format and send be body as formatted HTML. That assumes that your recipients will be able to view the HTML email in their email client.

One example of this can be seen at:
Sending Email in HTML format using CDONTS.NewMail Object
A Beginner's Guide to Sending Email from an ASP Page

Hope this helps.
DougCranston
 
dilettante,

Sorry we both must have been answering this one.

I'm out.
DougCranston
 
dougcranston, you gave a good link to an example. CDONTS will handle the MIME encoding for you if you set the properties correctly.

I hadn't gotten that far in my reply, 'cause I would have had to look it up myself and I figured somebody else could do it as easily as I could. ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top