View Full Version : mailto: + HTML letter
ShMiL
11-27-2004, 11:29 AM
I know I can use parameters such as subject,body when I use the anchor with mailto:...:
<a href="mailto:s@s.s?body=this is the body&subject=this is the subject">email</a>
my question is: Can I put rich HTML (use tags) into the body parameter?
Thanks
ShMiL
11-27-2004, 11:58 AM
look at this:
<html>
<head>
<title>37-2nd</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#00000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table cellspacing=0 cellpadding=0 bgcolor=red>
<tr>
<td><img src="images/spacer.gif" width="163" height="0" alt=""></td>
<td><img src="images/spacer.gif" width="25" height="0" alt=""></td>
<td><img src="images/spacer.gif" width="71" height="0" alt=""></td>
<td><img src="images/spacer.gif" width="45" height="0" alt=""></td>
<td><img src="images/spacer.gif" width="91" height="0" alt=""></td>
<td><img src="images/spacer.gif" width="15" height="0" alt=""></td>
</tr>
</table>
</body>
</html>
logically, it suppose to show nothing, as the images are height=0. But paractically, I see a red line.
How come? Does anyone know what to do?
chilipie
11-27-2004, 03:08 PM
Is the image transparent?
Jalenack
11-27-2004, 07:13 PM
there is no attribute height="0" i believe- i mean doesn't that defeat the purpose of anything you have? also - its showing the red line because your bgcolor=red (aaah deprecated markup) anyway - what exactly are you trying to do?it seems as if all that markup has a goal of displaying nothing...why not just have nothing on the page?!?
<a href="mailto:s@s.s?body=this is the body&subject=this is the subject">email</a>
question is: Can I put rich HTML (use tags) into the body parameter?
Well, you can put rich HTML as long as you don't use Double quote ".
From the line you start to use Double Quote ", the mailto: tag understands you want to close the tags.
So you must use Single Quote ' in the body parameter. However it might be a limit where we must use Double quote '' in places like in JavaScript and VBScript.
<table cellspacing=0 cellpadding=0 bgcolor=red>
there is no attribute height="0" i believe- i mean doesn't that defeat the purpose of anything you have? also - its showing the red line because your bgcolor=red
Here, I support what Jalenack said. You chose the table background color as red. If you set the table bgcolor value to none, it won't show you any line(s) or img width or height.
Again,
it suppose to show nothing, as the images are in height=0. But paractically, I see a red line.
But let alone Height value is set to 0, see the value in width. There the Max width is 163. The higher you set the width value, the longer the line becomes horizontally. The higher you set the height value, the longer the line becomes
vertically. When you set them zero, it only looks like a dash.
In my opinion why you see line inspite of your set value 0.
In web pages,as soon as you use the table tags ,the browser understands this space is preserved for a table and give a very certain amout of space for it until its value is defined. To see it clearly, type
<body bgcolor="#000000">
<table bgcolor="#FF0000">
<tr>
<td></td>
</tr>
</table>
and view it. You'll see the small red dot preserved for table attributes. It is a default value. To see the browser default width-height value for img src, type :
<body bgcolor="#000000">
<table bgcolor="#FF0000">
<tr>
<td><img src=".gif"></td>
</tr>
</table>
It won't change until you specify their values like you typed <cellpading=0 cellspacing=0><img....width=0 height=0>
Even if you set the img width and height values to 0, there is still unseen pixel set as a default value for 0. It becomes clearly and seen only when you insert two or more img src.To understand what I mean,
compare the following two :
Type it and carefully view it.
<table cellspacing="0" cellpadding="0" bgcolor=red>
<tr><td><img src="images/spacer.gif" width="0" height="0"></td></tr>
</table>
Type it and carefully view it.
<table cellspacing="0" cellpadding="0" bgcolor=red>
<tr>
<td><img src="images/spacer.gif" width="0" height="0"></td>
<td><img src="images/spacer.gif" width="0" height="0"></td>
<td><img src="images/spacer.gif" width="0" height="0"></td>
<td><img src="images/spacer.gif" width="0" height="0"></td>
</tr>
</table>
As much as you insert img src, a dot becomes a dash. A dash becomes longer little by litte.
Sorry for my pretty long message.
Best Regards,
iota
ShMiL
11-27-2004, 09:56 PM
First of all, it's only part of the code.. the relevant part.
Second, all of your samples show red lines/dots. When you put attributes (all equal to zero), there is no need for it to be shown.
Can I change this?
Scrowler
11-27-2004, 11:58 PM
why are you putting images into your page that are of null width and height?
this would easily be replaced by " " and wouldn't affect the page, except getting rid of your red lines/dots and clearing some of the source code up
ShMiL
11-28-2004, 01:08 AM
what " " got to do with this table?
Scrowler
11-28-2004, 02:35 AM
" " corresponds with nothingness, or a space, i can't understand why you are trying to insert numerous images that won't even show up.. is the objective to boost load-time?
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.