473,408 Members | 1,966 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.

mailto & display name issue

Hi

I have a link on a website that if you click opens up outlook

<button onClick="location.href='mailto:a@b.com?subject=tes t subject'" >
Select</button>

Works fine

But I want to include a display name

Usually the syntax for a display name is

"display name" <a@b.com>

But trying to use that in HTML doesnt work

Any ideas how I can do this?

Thanks

Jul 21 '06 #1
11 9515
On 21 Jul 2006 mi**********@lineone.net wrote:
Organization: http://groups.google.com
The innocents abroad.
I have a link on a website that if you click opens up outlook
I don't believe that!
<button onClick="location.href='mailto:a@b.com?subject=tes t subject'" >
Select</button>

Works fine
I don't believe that!
But I want to include a display name
"display name" <a@b.com>
<a href="mailto:jo******@example.invalid%20(John%20Do e)">

Jul 21 '06 #2
Dan

mi**********@lineone.net wrote:
I have a link on a website that if you click opens up outlook
Only for people with the bad taste to have made Outhouse their default
mail program. It may open up a different mail client, use a built-in
mailer in the user's browser, or do nothing at all for other people
depending on what programs they are using and how they have configured
them.
<button onClick="location.href='mailto:a@b.com?subject=tes t subject'" >
Select</button>
That's poor syntax; spaces aren't officially allowed in URLs, though
some software is forgiving of this. You should encode the space as
%20. Also, it would be more widely accessible to use a normal
hyperlink instead of a button element requiring client scripting
support.
Works fine
For some users in some situations.
But I want to include a display name

Usually the syntax for a display name is

"display name" <a@b.com>
The spaces, quotes, and angle brackets would have to be encoded as the
percent-sign equivalents (with hexadecimal character codes).

--
Dan

Jul 21 '06 #3
In message <11**********************@m79g2000cwm.googlegroups .com>, Dan
<da*@tobias.namewrites
>
mi**********@lineone.net wrote:
>I have a link on a website that if you click opens up outlook

Only for people with the bad taste to have made Outhouse their default
mail program.
Outlook can also be installed by a person's employer - which can hardly
be said to be "bad taste" on the part of that individual.

Besides, Outlook isn't as bad as some mail clients - it's certainly
better than Outlook Express, for instance.
--
Andy Mabbett
Say "NO!" to compulsory ID Cards: <http://www.no2id.net/>

Free Our Data: <http://www.freeourdata.org.uk>
Jul 23 '06 #4
Andy Mabbett wrote:
In message <11**********************@m79g2000cwm.googlegroups .com>,
Dan <da*@tobias.namewrites
>mi**********@lineone.net wrote:
>>I have a link on a website that if you click opens up outlook
Only for people with the bad taste to have made Outhouse their
default mail program.

Outlook can also be installed by a person's employer - which can
hardly be said to be "bad taste" on the part of that individual.

Besides, Outlook isn't as bad as some mail clients - it's certainly
better than Outlook Express, for instance.
Major difference: Outlook isn't a real internet mail client. Outlook
Express is. So (for example) Outlook makes it impossible to get a
reliable copy of the source of an email message; it munges the headers
in the process of storing internet mail, and if you want to see them, it
has to reconstitute them.

Outlook is really groupware client, with internet mail included as an
afterthought.
--
The Jackpot website has returned with style:
http://www.jackpot.uk.net/
Jul 23 '06 #5
mi**********@lineone.net wrote:
Hi

I have a link on a website that if you click opens up outlook

<button onClick="location.href='mailto:a@b.com?subject=tes t subject'" >
Select</button>

Works fine

But I want to include a display name

Usually the syntax for a display name is

"display name" <a@b.com>

But trying to use that in HTML doesnt work

Any ideas how I can do this?

Thanks
If I may take you off on an entirely different direction:
putting a plaintext email address on a web page is just begging
for spam. there are ways of cloaking your email addy so that
most bots will not recognize it as an email address.

If you want more, just ask.
Jul 23 '06 #6
bill:
putting a plaintext email address on a web page is just begging
for spam.
don't think so.
there are ways of cloaking your email addy so that
most bots will not recognize it as an email address.
the more you obfuscate it, the harder it is for genuine people.

obhtml, the problem here, as i see it, is *not* putting the address on
the page, but hiding it behind a button that may or may not do
something.

even with a href=mailto i'd have the address - unmunged, uncloaked - as
the link text.

--
Jock

Jul 23 '06 #7
mjs

Dan wrote:
mi**********@lineone.net wrote:
I have a link on a website that if you click opens up outlook

Only for people with the bad taste to have made Outhouse their default
mail program. It may open up a different mail client, use a built-in
mailer in the user's browser, or do nothing at all for other people
depending on what programs they are using and how they have configured
them.
<button onClick="location.href='mailto:a@b.com?subject=tes t subject'" >
Select</button>

That's poor syntax; spaces aren't officially allowed in URLs, though
some software is forgiving of this. You should encode the space as
%20. Also, it would be more widely accessible to use a normal
hyperlink instead of a button element requiring client scripting
support.
Works fine

For some users in some situations.
But I want to include a display name

Usually the syntax for a display name is

"display name" <a@b.com>

The spaces, quotes, and angle brackets would have to be encoded as the
percent-sign equivalents (with hexadecimal character codes).

--
Dan
Thanks for that - encoding did the trick

Jul 26 '06 #8
John Dunlop wrote:
| bill:
|
|| putting a plaintext email address on a web page is just begging
|| for spam.
|
| don't think so.
|
|| there are ways of cloaking your email addy so that
|| most bots will not recognize it as an email address.
|
| the more you obfuscate it, the harder it is for genuine people.
|
| obhtml, the problem here, as i see it, is *not* putting the address on
| the page, but hiding it behind a button that may or may not do
| something.
|
| even with a href=mailto i'd have the address - unmunged, uncloaked -
| as the link text.

I'm slipping into this topic since bill wrote ' there are ways of cloaking
your email addy so that
most bots will not recognize it as an email address.
If you want more, just ask.'

At http://www.delmarcottages.ca a javascript is in place that is connected
to a .gif
I wondered if a viewer has the browser security settings at a maximum level
or has scripting turned off what alternative code can be inserted?

<script language="JavaScript" type="text/javascript">
function postage(one,two,three){
window.location = 'mailto:'+one+two+three;
}
</script>

In the body of the html page for the navigation panel the code for the
e-mail button is:

<tr>
<td align="center"><img src="../allimages/navemail.gif"alt="email link"
width="100" height="26" border="0" onmouseover="this.style.cursor='hand'"
onclick="postage('delmarcottages','@nexicom.','net ');"></td>
</tr>

RoseW
Sep 14 '06 #9
In article <eN******************@nnrp.ca.mci.com!nnrp1.uunet. ca>,
"RoseW" <wd**@nshurontel.on.cawrote:
John Dunlop wrote:
| bill:
|
|| putting a plaintext email address on a web page is just begging
|| for spam.
|
| don't think so.
|
|| there are ways of cloaking your email addy so that
|| most bots will not recognize it as an email address.
|
| the more you obfuscate it, the harder it is for genuine people.
|
| obhtml, the problem here, as i see it, is *not* putting the address on
| the page, but hiding it behind a button that may or may not do
| something.
|
| even with a href=mailto i'd have the address - unmunged, uncloaked -
| as the link text.

I'm slipping into this topic since bill wrote ' there are ways of cloaking
your email addy so that
most bots will not recognize it as an email address.
If you want more, just ask.'

At http://www.delmarcottages.ca a javascript is in place that is connected
to a .gif
I wondered if a viewer has the browser security settings at a maximum level
or has scripting turned off what alternative code can be inserted?

<script language="JavaScript" type="text/javascript">
function postage(one,two,three){
window.location = 'mailto:'+one+two+three;
}
</script>
Without any kind of scripting? Forgo the mailto: tag completely
(people can copy and paste, can't they?) and, for superparanoid
mode, place the email address as a gif (with a random background
pattern to prevent automated OCR if you're super-superparanoid).

Either that, or use character entities to limit plain-text sniffing
of email addresses, e.g. &#x2e for periods, &#x40 for @, etc.
(&#x followed by the hexadecimal ASCII code - I think you can also
use octal and decimal &# entity specifiers?) That will limit
harvesting, although I doubt it will completely prevent it.

I've noticed, however, that a lot of large institutions (such as banks)
use a web form for contact rather than a mailto: link. If you decide
to go this route, just be sure NOT to use Matt's formmail perl script,
but the secure version that can be found an Sourceforge. (There is at
least one PHP version as well.) Sorry, can't find the URL right now
- I've changed computers since I last looked at that, and I haven't
migrated everything yet.
Sep 14 '06 #10
On Thu, 14 Sep 2006 07:52:19 -0400, David Stone
<no******@domain.invalidwrote:

snip>>>>>>>>>>>
If you decide
>to go this route, just be sure NOT to use Matt's formmail perl script,
but the secure version that can be found an Sourceforge. (There is at
least one PHP version as well.) Sorry, can't find the URL right now
- I've changed computers since I last looked at that, and I haven't
migrated everything yet.
Hi David,

http://nms-cgi.sourceforge.net/

Andrew
--

Andrew
http://www.andrews-corner.org/
Sep 14 '06 #11
In article <r6********************************@4ax.com>,
Andrew <sorry.no.email@post_NG.comwrote:
On Thu, 14 Sep 2006 07:52:19 -0400, David Stone
<no******@domain.invalidwrote:

snip>>>>>>>>>>>
If you decide
to go this route, just be sure NOT to use Matt's formmail perl script,
but the secure version that can be found an Sourceforge. (There is at
least one PHP version as well.) Sorry, can't find the URL right now
- I've changed computers since I last looked at that, and I haven't
migrated everything yet.

Hi David,

http://nms-cgi.sourceforge.net/

Andrew
Ah! I remembered the nms part, but I had forgotten the -cgi
- no wonder I couldn't find it! Thanks!
Sep 14 '06 #12

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

Similar topics

2
by: | last post by:
I have just about finished my project and need to change the name of the ..exe file created by the Windows Installer to the real name. I was developing naming the solution and project MyProject,...
1
by: James | last post by:
Is it possible that I can have a c# window service run under different display name?
1
by: volunteer | last post by:
<?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="filename.xsl"?> <markers date="20060523"> 04:21:50 PM <marker sn="1" rank="6" name="john" /> <marker sn="2" rank="5"...
0
by: not_a_commie | last post by:
I have a base class with a collection of objects. I want to change the display name of that in my descendant classes. I tried this line: ...
5
by: Yas | last post by:
Hello, I have the following table with 4 columns.... firstname, lastname1, lastname2, EMAIL Table has user names and email, I would like to generate a 5th column called DisplayName. The email...
1
by: =?Utf-8?B?VHJpc2hh?= | last post by:
How do you change your display name in windows mail? -- Trisha
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
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
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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
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.