[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How to embed img to e-mail HTML body (Outlook object)

Posted on 2001-06-25
13
Medium Priority
?
704 Views
Last Modified: 2007-12-19
I use object: new ActiveXObject("Outlook.Application")
to send e-mails with HTML format body.
I would like that imgs and other resources in HTML body
would be embeded into e-mail (not linked by url as
in regular HTML). How to do this ?
I have to add to HTML tag some general attribute or
I have to prepare by scripting attached resource, get its
id and attached this id to tag as some attribute ?
I didn't find it in Outlook docs.
Thank you,
Vladimir

 
0
Comment
Question by:vladimir12345
  • 5
  • 5
  • 2
  • +1
13 Comments
 
LVL 1

Expert Comment

by:rxolotl
ID: 6244911
You need to found some property like mime type and put it as "html/text"
0
 

Author Comment

by:vladimir12345
ID: 6244927
I don't sure.
0
 
LVL 1

Accepted Solution

by:
rxolotl earned 400 total points
ID: 6245028
There are 3 kinds of email mime-type.
1.- text/plain
2.- html/plain
3.- multipart

It must be a property of your ActivexObject.
When you send an atachment mime-type used id multipart or you can reference by absolutely way like http://...
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:vladimir12345
ID: 6245048
Thanx, I'll test it. If it will work I'll write points for you.
0
 

Author Comment

by:vladimir12345
ID: 6245260
It doesn't work. I put all variants into meta tag
within e-mail HTML body.
:-(
0
 
LVL 1

Expert Comment

by:rxolotl
ID: 6245505
The ploblem is not a meta tag is a part of smtp header
Your ActiveX work with smtp protocol you need change a property of your activeX not a Meta Tag. You need documentation about your activeX or change it.

0
 
LVL 1

Expert Comment

by:rxolotl
ID: 6245593
http://support.microsoft.com/support/kb/articles/Q161/0/82.ASP
it contains a download hlp file to programm outlock since vbscript.
0
 

Author Comment

by:vladimir12345
ID: 6247532
I'll test it.
I can send e-mail as HTML, problem is that I cannot
embed image into e-mail body, Outlook saves it as url
link.
0
 
LVL 1

Expert Comment

by:rxolotl
ID: 6248749
You need to send image as attachment, use as mimetype multipart. If you are using Visual Basic or ASP or Visual C you can use CDONTS Activex object if you are working on Windows NT Server or Windows 2000 server.
0
 

Author Comment

by:vladimir12345
ID: 6248815
Not, I use ActiveXObect from client computer.
It sends e-mail with HTML body correctly.
If I write in the body tag:
<img src="http://www.some_addr">
It remains the same in e-mail.
I'd like that Outlook embeds img into e-mail body
instead of using its url.
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 7811174
This question has been abandoned. I will make a recommendation to the
moderators on its resolution in a week or two. I appreciate any comments
that would help me to make a recommendation.
<note>
   In the absence of responses, I may recommend DELETE unless it is clear
   to me that it has value as a PAQ.  Silence = you don't care
</note>

Cd&
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 7910098
It is time to clean this abandoned question up.  

I am putting it on a clean up list for CS.

<recommendation>
points to rxolotl

</recommendation>

If anyone participating in the Q disagrees with the recommendation,
please leave a comment for the mods.

Cd&
0
 
LVL 1

Expert Comment

by:Computer101
ID: 7957942
Comment from expert accepted a answer

Computer101
E-E Admin
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question