A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Outlook HTML.Body



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old January 21st 07, 04:18 PM posted to microsoft.public.outlook.program_vba
grahamproctor
external usenet poster
 
Posts: 1
Default Outlook HTML.Body


In VBA (Office 2003), I am trying to create a new email and set the body
text to a saved HTML document but my graphic is not being displayed. I
have used the following combinations of code (each try is commented
out) but without success. If I use .mht and open the email in the
Outbox the graphic appears but when I save and reopen it, it appears as
a placeholder only, not the graphic.

I would appreciate any ideas. Thanks, Graham.

Dim fso As FileSystemObject
Dim ts As TextStream
Dim strText As String

Set fso = CreateObject("Scripting.FileSystemObject")

'Set ts = fso.OpenTextFile("g:\Medics Away\Mailing
Documents\RepplyF.htm", ForReading)
Set ts = fso.OpenTextFile("g:\Medics Away\Mailing
Documents\Repply.htm", ForReading)
'Set ts = fso.OpenTextFile("g:\Medics Away\Mailing
Documents\Repply.mht", ForReading)
'Set ts = fso.OpenTextFile("g:\Medics Away\Mailing
Documents\Repply.mht.doc", ForReading)
'Set ts = fso.OpenTextFile("g:\Medics Away\Mailing
Documents\Repply.htm.doc", ForReading)

strText = ts.ReadAll

mai1.HTMLBody = strText


--
grahamproctor
------------------------------------------------------------------------
grahamproctor's Profile: http://www.officehelp.in/member.php?userid=6171
View this thread: http://www.officehelp.in/showthread.php?t=1325714

Posted from - http://www.officehelp.in

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML olAppointment Body? Tony Gravagno Add-ins for Outlook 5 December 19th 06 09:53 PM
HTML in Task Body K Passaur Outlook and VBA 2 August 21st 06 05:22 AM
mailto - html in body Giorgio Outlook Express 7 June 21st 06 02:41 PM
Graphics in HTML Body GeorgeMar Outlook and VBA 2 February 27th 06 02:17 PM
sending html in body of outlook xp email Help a Novice Please Outlook - General Queries 3 February 22nd 06 06:50 AM


All times are GMT +1. The time now is 11:39 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.