473,395 Members | 1,608 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,395 software developers and data experts.

html within email message

cj
If anyone can help me with this, I would reeeeally appreciate it:

I am trying to send an email that contains a 'webpage" within it. I
have seen this done a million times, like in the emails I get from
NetFlix and Jetblue, but I'm not able to figure this out on my own.
When I simply take my html code and copy it into the body of an email,
the email that I receive shows just the code, not any graphics. What's
the trick?

Thanks...

Jul 24 '05 #1
7 3036
In article <11*********************@g14g2000cwa.googlegroups. com>,
cj*********@yahoo.com enlightened us with...
If anyone can help me with this, I would reeeeally appreciate it:

I am trying to send an email that contains a 'webpage" within it. I
have seen this done a million times, like in the emails I get from
NetFlix and Jetblue, but I'm not able to figure this out on my own.
When I simply take my html code and copy it into the body of an email,
the email that I receive shows just the code, not any graphics. What's
the trick?


Are you setting the content type properly?
You have to tell the mail client that it is html and the client must be able
to receive html and it must actually BE html, not copied-and-pasted html
source.
If you copy and paste a "<" for example, it actually gets pasted as "&lt;" in
the mail.

The whole copy and paste thing works different for different clients. For
example, I can easily copy and paste from MSIE into Outlook and retain
formatting, and I can go from Firefox to Firebird, but forget trying to do
that from Firefox to Outlook.

--
--
~kaeli~
Does the name Pavlov ring a bell?
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 24 '05 #2
cj wrote:
If anyone can help me with this, I would reeeeally appreciate it:

I am trying to send an email that contains a 'webpage" within it. I
have seen this done a million times, like in the emails I get from
NetFlix and Jetblue, but I'm not able to figure this out on my own.
When I simply take my html code and copy it into the body of an email,
the email that I receive shows just the code, not any graphics. What's
the trick?

Are you talking about a single email that you compose with you MUA (Outlook,
Thunderbird, whatever)? Or about sending email from a program (PHP page,
cron script...).
A can't help you for the first case - never done it myself, never will.
In the second case, check if your programming language has support for
generating MIME messages - in the simplest case, just set the Content-Type
to text/html, but in more advanced cases you'll be happy, if you can use an
existing toolkit. Also checkout the multipart/alternative content-type to
provide a text-only fallback for recipents without or with disabled HTML
support in their MUA.

--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://www.odahoda.de/
Jul 24 '05 #3
Els
cj wrote:
If anyone can help me with this, I would reeeeally appreciate it:

I am trying to send an email that contains a 'webpage" within it. I
have seen this done a million times, like in the emails I get from
NetFlix and Jetblue, but I'm not able to figure this out on my own.
When I simply take my html code and copy it into the body of an email,
the email that I receive shows just the code, not any graphics. What's
the trick?

Thanks...


If you're using Outlook Express: you need to paste the code in the
code-view version of the email. If you have your email set to send
HTML email, you'll find three tabs at the bottom of your new email,
one of which has a name like 'source' or 'code' or something.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Jul 24 '05 #4
Gazing into my crystal ball I observed "cj" <cj*********@yahoo.com>
writing in news:11*********************@g14g2000cwa.googlegro ups.com:
If anyone can help me with this, I would reeeeally appreciate it:

I am trying to send an email that contains a 'webpage" within it. I
have seen this done a million times, like in the emails I get from
NetFlix and Jetblue, but I'm not able to figure this out on my own.
When I simply take my html code and copy it into the body of an email,
the email that I receive shows just the code, not any graphics. What's
the trick?

Thanks...


You might want to try something like GroupMail, which has a tab to do
what you want to do. The only thing you need to remember, is that you
have to use an absolute path for images, eg. <img
src="http://www.example.com/image.png">, just using <img src="image.png">
will not work.

Also realize there are a lot of people who dump HTML email into the trash
without even looking at it. I would be more inclined to make a plain
text email and with a link to the page you really want the person to see.

Addtionally, some email clients do not show images, like Pegasus Mail,
and some have an option to show images or not, MS Outlook has this, as
well as web based like Yahoo.

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Jul 24 '05 #5
cj wrote:

If anyone can help me with this, I would reeeeally appreciate it:

I am trying to send an email that contains a 'webpage" within it. I
have seen this done a million times, like in the emails I get from
NetFlix and Jetblue, but I'm not able to figure this out on my own.
When I simply take my html code and copy it into the body of an email,
the email that I receive shows just the code, not any graphics. What's
the trick?

Thanks...


Don't do it! See "Why HTML formatted e-mail is best avoided" at
the end of
<URL:http://www.dtek.chalmers.se/~d97jorn/pgp/killhtml.html>.

An HTML message is actually about three times larger than an ASCII
message with the same amount of text. That means an HTML message
takes three times longer for me to download through my dial-up
modem (almost half those who access the Internet from home still
use a dial-up modem). It takes three times longer to pass through
my anti-virus scanner than the same information in an ASCII
message. Then it occupies three times as much space on my hard
drive.

If you need to convey information that goes beyond simple text and
is best displayed as a Web page, indeed make a Web page. Then
merely send a message with the URL in it.

--

David E. Ross
<URL:http://www.rossde.com/>

I use Mozilla as my Web browser because I want a browser that
complies with Web standards. See <URL:http://www.mozilla.org/>.
Jul 24 '05 #6
cj
Ugh, I know, I would rather not send out an html email, but this is
what the client wants. I am using dreamweaver to make the html "page"
and I'm not sure what email program the client is planning on sending
it out from. One thing I did test (from my apple mail to a yahoo
account) is dropping the html file into the email, and that kind of
works, but shows that there is an attachment in the email, which I dont
want.

Jul 24 '05 #7
JRS: In article <42***************@nowhere.not>, dated Thu, 14 Apr 2005
12:09:08, seen in news:comp.infosystems.www.authoring.html, David Ross
<no****@nowhere.not> posted :
cj wrote:

If anyone can help me with this, I would reeeeally appreciate it:

I am trying to send an email that contains a 'webpage" within it. I
have seen this done a million times, like in the emails I get from
NetFlix and Jetblue, but I'm not able to figure this out on my own.
When I simply take my html code and copy it into the body of an email,
the email that I receive shows just the code, not any graphics. What's
the trick?

Thanks...
Don't do it! See "Why HTML formatted e-mail is best avoided" at
the end of
<URL:http://www.dtek.chalmers.se/~d97jorn/pgp/killhtml.html>.

An HTML message is actually about three times larger than an ASCII
message with the same amount of text.


Agreed; or, as unchecked, at least believed. It must depend on the
luridity.
That means an HTML message
takes three times longer for me to download through my dial-up
modem (almost half those who access the Internet from home still
use a dial-up modem). It takes three times longer to pass through
my anti-virus scanner than the same information in an ASCII
message. Then it occupies three times as much space on my hard
drive.
But only if it is sent to you and your system accepts it /in toto/ and
you choose to keep it.

If you need to convey information that goes beyond simple text and
is best displayed as a Web page, indeed make a Web page. Then
merely send a message with the URL in it.


Not everyone has spare Web space and the ability to use it; and there
are classes of information for which, rightly or wrongly, an E-mail is
considered sufficiently secure but a Web page is not.
There is no reason at all why E-mail should not be sent, between
consenting persons and conforming to relevant standards, in HTML, if the
added value is considered to justify the increased size.

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.com/faq/> JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
Jul 24 '05 #8

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

Similar topics

8
by: Francesco Moi | last post by:
Hi. I must parse this XML document: -------------- <doc> <item> <name>Jerry</name> <message>Hi<br>My name is Jerry</message> </item> </doc>
12
by: Kevin Lyons | last post by:
Hello, I am trying to get my select options (courses) passed correctly from the following URL: http://www.dslextreme.com/users/kevinlyons/selectBoxes.html I am having difficulty getting the...
5
by: BaWork | last post by:
I have a web form where a client can select which site members to send an email to. This form is populated from the contents of the member table, so the form can have 0-x names listed on it...
5
by: Fatih BOY | last post by:
Hi, How can i register my own protocol like app-help://somepage.html which searchs typed files under a predefined folder (like document folder under installation root) ? Fatih BOY
4
by: Jay | last post by:
Hi all, May i know if there is any way by which we can render a given HTML inside .NET Windows Forms? We had the Web Browser controls in Visual Studio 6. Is there a follow-up of that in...
6
by: Paolo Pignatelli | last post by:
I have an aspx code behind page that goes something like this in the HTML view: <asp:HyperLink id=HyperLink1 runat="server" NavigateUrl='<%#"mailto:" &amp;...
6
by: Dominique | last post by:
Hi all, I'm using .NET v1.1 and the scenario I have is as follows... I have IE as an ActiveX control embedded in may C# App. I generate a HTML file dynamically and within the HTML file I embed a...
1
by: foolproofplan | last post by:
I have a situation where I need to convert an xml file into two types of tables in html. I have never done anything like this before, so I have been reading up on it online. However, I am not 100...
2
by: anu b | last post by:
Now i am sending email to my friend using session variable... but my code is as below private bool SendEmail(string email) { try
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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,...

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.