![]() |
Inserting a picture in the message body of a custom form
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? |
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? |
All times are GMT +1. The time now is 06:42 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-2006 OutlookBanter.com