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 » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Image not displaying when applying stationery via code



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old November 21st 07, 10:33 PM posted to microsoft.public.outlook,microsoft.public.outlook.installation,microsoft.public.outlook.program_addins,microsoft.public.outlook.program_vba
John
external usenet poster
 
Posts: 135
Default Image not displaying when applying stationery via code

Hi

I am assigning stationery via code to a new email as below. The problem is
that the image included in stationery does not appear in the sent mail. What
is the problem and how can I fix it? There must be someone who has done this
sort of thing, and outlook being around for so long someone must have
figured a way to do this.

Thanks

Regards


Code
====

Set fso = CreateObject("Scripting.FileSystemObject")
Set Ts = fso.OpenTextFile("F:\Email Stationery\Email_Template.htm", 1)

Set OutlookApp = New Outlook.Application
Set EM = OutlookApp.CreateItem(olMailItem)

With EM
.To = "
.Subject = "Any Subject"
.HTMLBody = Ts.ReadAll
.Send
End With


Content of F:\Email Stationery\Email_Template.htm
==================================

HTML
HEAD
/HEAD
BODY
img src="file:///F|/MyFolder/MyImage.jpg" width="89" height="59"
/body
/HTML


 




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
No image when stationery applied via code John Outlook - General Queries 2 January 23rd 08 04:56 AM
No image when stationery applied via code John Outlook and VBA 2 January 23rd 08 04:56 AM
Image not displaying when applying stationery via code John Outlook and VBA 1 November 22nd 07 06:22 AM
Image not displaying when applying stationery via code John Outlook - General Queries 0 November 21st 07 10:33 PM
Image not displaying when applying stationery via code John Outlook - Installation 0 November 21st 07 10:33 PM


All times are GMT +1. The time now is 09:13 AM.


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.