Solved

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

Posted on 2001-06-25
13
662 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 100 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
 

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
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
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 Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
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…
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…

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now