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 "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4134.100" 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 "-//W3C//DTD HTML 4.0 Transitional//EN">
Any ideas or a better way of doing it?
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 "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4134.100" 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 "-//W3C//DTD HTML 4.0 Transitional//EN">
Any ideas or a better way of doing it?