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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB6 Emailing Web Pages with Outlook

Status
Not open for further replies.

jingz

MIS
Mar 4, 2004
1
GB
I have written a VB6 program that does the following:
1. Created an Outlook object
2. Allocates recipient email address, subject, etc.
3. Reads the HTML code of a Web Page and allocates this to the body of the email
4. Automatically send the email to the recipient.
PROBLEM:
When the email is recieved, the recipient sees the email body as raw HTML text. That is, allocating the HTML code to the email body simply treats it as text and NOT as a web page. (I know how to include the Web page as an attachment - but I want the Web Page to appear as the BODY of the email).
QUESTION
How can I allocate a Web Page to the body of an email in VB6 so that the recipient sees the Web Page rather than the underlying HTML code?
Your help in this would be most appreciated.
Jingz
 
Hi,

It is the problem with the user setting. I can see HTML only if I choose to the email as HTML. If I have chosen my mails to be in text form, then I would view the source rather than HTML format.

Did you check saving your mail text as a HTML file and seeing in a browser?

ALL THE BEST
 
What you are seeing is the same thing that would happen if you pasted the HTML into an Outlook message, even if it was an HTML format message you would see the HTML code not the page.

But if you copy a web page from Explorer and paste it is a web page.

Why? Not sure. Maybe someone else will answer that one.

The only way I know to do what you are trying is to use CDO (Collaboration Data Objects).

Here is a link to how to do it in asp, pretty much the same.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top