473,408 Members | 2,444 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

HTML Page into Email

I have an HTML page which is a newsletter. I want to be able to add it to an
email message so I can email it to people. I want it to be in the body of
the email, not sent as an attachment.

There is a .htm page, several images, and a .css page. I need all of these
to be embedded for the page to work correctly. I can put the styles from the
..css file into the html page, but I still need to know how to embed the
images.

I tried creating stationary, but it didn't put the images in the email.

I know it is possible to do this. Can someone give me some pointers as to
how to get an HTML page along with several images into an email message.

I am currently using Outlook 2003.

Thanks!
Jul 20 '05 #1
7 7110
TLMM tl*@www.com wrote:

I have an HTML page which is a newsletter. I want to be able to add it to an
email message so I can email it to people. I want it to be in the body of
the email, not sent as an attachment.


I have an email client that very helpfully strips out the html and shows
me just the text but lets me know that the email was html so that in
future I can block the sender and not have to even bother to download the
rubbish

send the newsletter as plain text...put a link at the top of the
newsletter to a web page displaying the html version

--
eric
www.ericjarvis.co.uk
"live fast, die only if strictly necessary"
Jul 20 '05 #2
On Tue, 20 Apr 2004 23:35:48 +0100, Eric Jarvis <we*@ericjarvis.co.uk>
wrote:
I have an email client that very helpfully strips out the html and shows
me just the text but lets me know that the email was html so that in
future I can block the sender and not have to even bother to download the
rubbish


Indeed.

So let's encourage this guy. We want to keep this crud easily
recognisable.

Jul 20 '05 #3
"TLMM" <tl*@www.com> wrote in message news:<2M********************@ursa-nb00s0.nbnet.nb.ca>...
I have an HTML page which is a newsletter. I want to be able to add it to an
email message so I can email it to people. I want it to be in the body of
the email, not sent as an attachment.
Some discussion of HTML e-mail:
http://mailformat.dan.info/body/html.html
There is a .htm page,
The bogus dumbed-down extension for people and programs that can't
handle the correct .html extension...
several images, and a .css page. I need all of these
to be embedded for the page to work correctly. I can put the styles from the
.css file into the html page, but I still need to know how to embed the
images.
It's done by multipart MIME messages, where attached parts can be
referenced from HTML documents via "cid:" URIs referring to content
IDs. More info:

http://mailformat.dan.info/headers/mime.html
I tried creating stationary, but it didn't put the images in the email.
If something is "stationary", that means that it's motionless; it's
not very surprising then that it doesn't do anything. Perhaps you
mean to use "stationery"?
I am currently using Outlook 2003.


Big mistake. Outhouse sucks.

Just read all the relevant RFCs describing MIME attachment format and
the "cid:" URI scheme, then whip up a custom Perl script to generate
the message of the format you want untouched by Microshaft products
(running on a Linux server, of course). Piece of cake.

--
Dan
Jul 20 '05 #4
On Wed, 21 Apr 2004, Daniel R. Tobias wrote:
There is a .htm page,


The bogus dumbed-down extension for people and programs that can't
handle the correct .html extension...


It's the *people* that are the problem; the software can cope. But on
one point I would have to quibble with you: there is no "correct
extension" in URLs. The content-type of a WWW resource is determined
- according to HTTP specifications - by the HTTP Content-type header:
and that's official. And pffffft to anyone who behaves otherwise
(Opera, that means you, too...).

The apparent filename extension in a URL has nothing, directly, to do
with it (although it might have internal significance to the web
server - but it could equally be .shtm or .php or whatever and still
produce a text/html content-type). There doesn't even have to be a
filename extension (in fact, if you use Apache MultiViews, it's better
*not* to have one).

Sure, the .html extension is certainly *conventional*, and - like all
such matters - there are advantages in going along with what's
expected, unless you find some major net benefit to be achieved by
doing things differently. And the .htm extension seems to be a "dead
giveaway" that the information provider is a serf to the Empire...

I was using ".html" URLs when my HTTPD was running on Windows/3.1 in
1994. Many times I've seen folks claiming, completely incorrectly,
that URLs hosted on "DOS" filesystems *have* to be like ".HTM", but
this only proves that they are (a) misinformed and (b) don't
understand the distinction between a URL and a filename.

(And, by the way, today's equivalent misunderstanding is the incorrect
belief that URLs on Windows-based servers are case-insensitive.)

best
Jul 20 '05 #5
On 21 Apr 2004 07:53:16 -0700, da*@tobias.name (Daniel R. Tobias)
wrote:
There is a .htm page,


The bogus dumbed-down extension for people and programs that can't
handle the correct .html extension...


..htm is not "bogus", nor is .html "correct".

If they were, there wouldn't be any argument over which to use. As it
is though, there just isn't any reason at all to favour one other the
other.

The only thing that's bogus is to forget that whilst HTML files have
file extensions, HTML documents and web pages do not - they have a
HTTP content-type header.
--
Smert' spamionam
Jul 20 '05 #6

"Andy Dingley" <di*****@codesmiths.com> wrote in message
news:v7********************************@4ax.com...
On 21 Apr 2004 07:53:16 -0700, da*@tobias.name (Daniel R. Tobias)
wrote:
There is a .htm page,


The bogus dumbed-down extension for people and programs that can't
handle the correct .html extension...


.htm is not "bogus", nor is .html "correct".


Put it this way: how many images on the Internet have extension "jpg" and
how many have "jpeg"? Which is the more common, by far? Which, if either, is
correct and which, if either, is bogus, and why?

Jul 20 '05 #7
TLMM wrote:
I have an HTML page which is a newsletter. I want to be able to add it to
an email message so I can email it to people. I want it to be in the body
of the email, not sent as an attachment.
I have a filter here that drops HTML e-mail directly into "trash" and I
periodically randomly empty "trash". So, the chances are if I get HTML
e-mail I will never see it, as virtually no legitimate e-mail to my
addresses should contain HTML (and the few legitimate HTML e-mails I catch
usually get a reply saying "please don't send HTML garbage here").
I know it is possible to do this.


It's possible to do 50 mph over the speed limit on certain freeways around
here, too. Just because it's possible doesn't mean it's a good idea.
Consider converting the newsletter to plain text for e-mailing.

--
Shawn K. Quinn
Jul 20 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: James Hong | last post by:
Help please, I try to sending an email from my html page using the java applet. but it give error on most of the PC only very few work, what is the error i make the java applet show as below ...
4
by: Richard Pain | last post by:
OK - I have a shopping basket with data in a database. Once the person has successfully completed their order I want to be able to send them an email with the products ordered roughly in the...
13
by: nobody | last post by:
Hello all, I've searched just about everything and although I can see that other people are having problems, but theirs don't seem to relate, so in a last ditch attempt, my posting! Script...
5
by: Das | last post by:
Hi, I'm trying to email html page & that page also contains the images. I can do that when we send html page from ms outlook. But I want to attach page c# code & send the mail through smtp mail....
7
by: SteveM | last post by:
I am sure this is an easy question, but being relatively new to ASP.NET programming, I can not quite grasp what I need to accomplish what I need to do. What I have is a word document that is...
8
by: rn5a | last post by:
I have a HTML page named Index.html which is divided into 3 frames. The URL of 2 of the frames are HTML pages but the 3rd frame houses a ASP page. Now when I go to Windows Explorer, navigate to...
33
by: STILL LEARNING | last post by:
I'm not sure if this can even be done, but what prompts the question is my desire to be able to create an "Uber Link" script/code of some sort, such that even if the html page contains nothing but...
3
by: PhilTheGap | last post by:
Hello, I woulf like to hide an activeX object in a aspx page. The ActiveX is decalred statically in the HTML code, and I'e tried to set the html visible "property" to "false" in the javascript...
5
by: rotaryfreak | last post by:
hello, im trying to build an application that will incorporate a "forgot password" feature. in order for my feature to work correctly, i am asking the user to type in his/her email address and...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.