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 - General Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Tags: , , ,

Pictures in mail item body





 
 
Thread Tools Display Modes
  #1  
Old April 22nd 06, 03:40 AM posted to microsoft.public.outlook
Ivan Debono
external usenet poster
 
Posts: 1
Default Pictures in mail item body

Hi all,

I have an htm page that I opened in internet explorer and saved as archive
(mht). Then I opened the mht file in word, did some changes and saved it as
a doc. The doc has various pictures.

I create an email message and insert the doc contents (copy from word and
paste into email message), and save the email as a draft. I have a macro
that sends an email to a recipient based on this draft. The code is:

Set oMal = Application.CreateItem(olMailItem)
With oMal
.To = emailaddress
.Subject = mydraft.Subject
.BodyFormat = olFormatHTML
.HTMLBody = mydraft.HTMLBody
.Send
End With

But when I send the email, it arrives without pictures.

How is it possible to do the above but the pictures are also included?

Thanks,
Ivan


Ads
  #2  
Old April 26th 06, 10:52 PM posted to microsoft.public.outlook
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,313
Default Pictures in mail item body

Getting pictures into an HTML message programmatically. HTMLBody contains on the html/html text. It does not include the pictures that are referred to inside the html element. Those would have to be added as attachments and set up in the manner demonstrated at http://www.outlookcode.com/d/code.htm#htmlimg.

Instead of creating a new message, why don't you make a copy of the item in Drafts and send the copy?



--
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

"Ivan Debono" wrote in message ...
Hi all,

I have an htm page that I opened in internet explorer and saved as archive
(mht). Then I opened the mht file in word, did some changes and saved it as
a doc. The doc has various pictures.

I create an email message and insert the doc contents (copy from word and
paste into email message), and save the email as a draft. I have a macro
that sends an email to a recipient based on this draft. The code is:

Set oMal = Application.CreateItem(olMailItem)
With oMal
.To = emailaddress
.Subject = mydraft.Subject
.BodyFormat = olFormatHTML
.HTMLBody = mydraft.HTMLBody
.Send
End With

But when I send the email, it arrives without pictures.

How is it possible to do the above but the pictures are also included?

Thanks,
Ivan


 




Thread Tools
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
Rule to Forward Incoming Mail Fails when item is itself a replied-to or forwarded e-mail Steven Bookman Outlook - General Queries 3 April 6th 06 09:41 PM
displaying pictures in body of e-mail Dermot Outlook - General Queries 1 March 28th 06 06:01 PM
powerpoint is the default open pictures attached to my e-mail - wh CW4 Campbell Outlook - General Queries 3 March 22nd 06 11:11 PM
Using VBA to edit mail body without losing embedded pictures? stuartjbray@hotmail.com Outlook and VBA 2 March 20th 06 07:38 PM
Body mail from MsWord Marcelo Outlook and VBA 0 February 6th 06 03:11 PM


All times are GMT +1. The time now is 06:37 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2008 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
Comprar vivienda Denia - Mortgage Calculator - File Host - Mortgage Calculator - Loans