View Single Post
  #2  
Old February 8th 06, 10:08 PM posted to microsoft.public.outlook
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Inserting a picture in the message body of a custom form

Adding an embedded image to an HTML-format image takes quite a bit of additional effort. See http://www.outlookcode.com/d/code/htmlimg.htm for sample code.

Also, I hope you're not planning to use this custom form to send to people who don't use Outlook. That's a sure way to ensure they won't be able to read any attachments.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"groom" wrote in message oups.com...
Trying to insert a company logo in the body of a custom form I've
created for our company. Here is the format that I'm trying:

Sub Item_Send()
Dim Message
Message = "Here is our company logoP"
Message = Message & "IMG SRC=PICTURE LOCATION"
Item.HTMLbody = Message
End Sub

The image source is currently on my desktop for now, though I plan to
put it on our server once I've been able to successfully load the
picture. I'll send the email to myself but I just get the "X" when I
open it. Is there a problem with the format or is it not successfully
accessing the picture?

Ads