Inserting a picture in the message body of a custom form

G

groom

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 logo<P>"
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?
 
S

Sue Mosher [MVP-Outlook]

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

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top