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!

Sending Email in HTML format or using stationary

Status
Not open for further replies.

HebieBug

Programmer
Jan 8, 2001
354
JP
Am attempting to send an email in HTML format through VB to Outlook 2000.
Have a *.TXT file with the HTML code which acts as a template
The email is created by taking the data from the txt file, adding fields from an SQL database to the HTML code and then placing it into the body of the email.
The area that I am stuck with is sending the HTML code
The TXT file look like this
<!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;>
<HTML><HEAD>
<META http-equiv=Content-Type content=&quot;text/html; charset=iso-8859-1&quot;>
<META content=&quot;MSHTML 5.50.4134.100&quot; name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=380555901-17082001>THIS IS A
TEST</SPAN></FONT></DIV></BODY></HTML>

When I run the program and put this code into the body
it will come up with the following message in the email
<!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;>

Any ideas or a better way of doing it?
 
I think there is something related to this in the FAQs section. Can't hurt to look...
 
Nothing in the FAQ.
Still searching for the answer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top