Improve company productivity with a Business Account.Sign Up

x
?
Solved

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

Posted on 2001-06-25
13
Medium Priority
?
709 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
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
AngularJS web development a very simple procedure. So, to put it, in short, AngularJS’ stand out features are – Two-way data binding, MVC structure, directives, templates, dependency injections and testing.
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…

585 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