|
-
Dec 19th, 2000, 07:16 AM
#1
Thread Starter
Lively Member
Hi,
I'm currently writing a VB e-mail program using Outlook. I have got everything sorted except the main body text. Does any one know how I can have this in HTML format. Loading it from a file or whatever.
Here's my current code:
Dim p_ExpressApp As New Outlook.Application
Dim p_Mail As MailItem
Set p_ExpressApp = New Outlook.Application
Set p_Mail = p_ExpressApp.CreateItem(olMailItem)
With p_Mail
.Display
.To = "[email protected]"
End With
Set p_ExpressApp = Nothing
Set p_Mail = Nothing
I can however add my htlm text as an attachment, p_mail.attachment.add "c:\test.html".
I really need it as the main body, i.e. p_mail.body = "string"
any clues anyone,
Thanks in advance,
Paul
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|