![]() |
| 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. |
|
|||||||
| Tags: body, item, mail, pictures |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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 | |
|
|
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 |