Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

e-mail links in HTML

10 views
Skip to first unread message

Roger Darlington

unread,
Apr 26, 2012, 2:09:00 AM4/26/12
to

Several people say that they cannot click on an e-mail link on my
webpage and get it to instigate an e-mail ready for sending.

Here is the code I use:

<a href="mailto:roge...@freeuk.com?subject=Submitted: Flower Photos
for Contributions">
Submit Your Flower Photo Contributions
</a>

they turn out to be using gmail for e-mail.

Is gmail broken? Does it not understand HTML?

Is my HTML code out of date? (It works here with MessengerPro as
e-mail client)

Should I complain to Google?

--

Cheers
Roger
If you start nowhere, you'll finish up in the same place

Robin Hounsome

unread,
Apr 26, 2012, 2:23:51 AM4/26/12
to
In article <d27253865...@rogerarm.freeuk.com>,
Roger Darlington <roge...@freeuk.com> wrote:

> Several people say that they cannot click on an e-mail link on my
> webpage and get it to instigate an e-mail ready for sending.

> Here is the code I use:

> <a href="mailto:roge...@freeuk.com?subject=Submitted: Flower Photos
> for Contributions">
> Submit Your Flower Photo Contributions
> </a>

Try this:

<a href="mailto:roge...@freeuk.com?subject=Submitted:%20Flower%20Photos
%20for%20Contributions">

HTH

Robin

--
Remote - http://www.hounsome.org.uk
TV display software for the Iyonix

Roger Darlington

unread,
Apr 26, 2012, 3:52:12 AM4/26/12
to
On 26 Apr 2012, Robin Hounsome wrote:
> In article <d27253865...@rogerarm.freeuk.com>,
> Roger Darlington <roge...@freeuk.com> wrote:

>> Several people say that they cannot click on an e-mail link on my
>> webpage and get it to instigate an e-mail ready for sending.

>> Here is the code I use:

>> <a href="mailto:roge...@freeuk.com?subject=Submitted: Flower Photos
>> for Contributions">
>> Submit Your Flower Photo Contributions
>> </a>

> Try this:

> <a href="mailto:roge...@freeuk.com?subject=Submitted:%20Flower%20Photos
> %20for%20Contributions">


OK, thanks Robin, I will. It was just a case of Google not liking
spaces, but MessPro doesn't mind, eh?


:-))


--

Cheers
Roger
The PC standard: no two machines alike.

John Williams (News)

unread,
Apr 26, 2012, 4:52:56 AM4/26/12
to
In article <69e55c865...@rogerarm.freeuk.com>,
Roger Darlington <roge...@freeuk.com> wrote:

> >> Here is the code I use:

> >> <a href="mailto:roge...@freeuk.com?subject=Submitted: Flower Photos
> >> for Contributions">
> >> Submit Your Flower Photo Contributions
> >> </a>

> > Try this:

> > <a href="mailto:roge...@freeuk.com?subject=Submitted:%20Flower%20Photos
> > %20for%20Contributions">

Interestingly, Pluto stops before the colon with your first href, giving a
subject of 'Submitted'.

Robin's version looks as though it would give the whole subject line were
it not for the line breaks, ie, the as-quoted above gives 'Submitted:
Flower Photos', but can't include the rest as a line-break has crept in.

I can demonstrate this by extracting the mailto and editing out the line
break and the quote bit to make it all one line:

mailto:roge...@freeuk.com?subject=Submitted:%20Flower%20Photos%20for%20Contributions

That works as expected.

John

--
John Williams, Brittany, Northern France - no attachments to these addresses!
Non-RISC OS posters change user to johnrwilliams or put 'risc' in subject!
Who is John Williams? http://petit.four.free.fr/picindex/author/

jgharston

unread,
Apr 26, 2012, 5:32:43 PM4/26/12
to
Roger Darlington wrote:
> > Try this:
> > <a href="mailto:roger...@freeuk.com?subject=Submitted:%20Flower%20Photos
> > %20for%20Contributions">
>
> OK, thanks Robin, I will. It was just a case of Google not liking
> spaces, but MessPro doesn't mind, eh?

It's not that Google doesn't like spaces, but URIs are defined to
not have spaces in them. Any spaces must be encoded, as in the
example given. See http://www.rfc-editor.org/rfc/rfc1738.txt

Additionally, in the above example the colon should also be
encoded.

JGH

Roger Darlington

unread,
Apr 27, 2012, 3:11:33 AM4/27/12
to
To %3A


> JGH


--

Cheers
Roger
I'm a mitochondriac

Derek.Moody

unread,
May 7, 2012, 11:48:35 AM5/7/12
to
In article <54370e48-bc5c-4d14...@l3g2000vbv.googlegroups.com>,
jgharston <URL:mailto:j...@arcade.demon.co.uk> wrote:
> Roger Darlington wrote:
> > > Try this:
> > > <a href="mailto:roger...@freeuk.com?subject=Submitted:%20Flower%20Photos
> > > %20for%20Contributions">
> >
> > OK, thanks Robin, I will. It was just a case of Google not liking
> > spaces, but MessPro doesn't mind, eh?
>
> It's not that Google doesn't like spaces, but URIs are defined to
> not have spaces in them. Any spaces must be encoded, as in the
> example given. See http://www.rfc-editor.org/rfc/rfc1738.txt

Better see rfc 2368

> Additionally, in the above example the colon should also be
> encoded.

Slightly better might be:

<a href="&#109;&#097;&#105;&#108;&#116;&#111;&#058;&#114;&#111;&#103;&#101;&#114;&#097;&#114;&#109;&#064;&#102;&#114;&#101;&#101;&#117;&#107;&#046;&#099;&#111;&#109;&#063;&#115;&#117;&#098;&#106;&#101;&#099;&#116;&#061;&#083;&#117;&#098;&#109;&#105;&#116;&#116;&#101;&#100;&#032;&#070;&#108;&#111;&#119;&#101;&#114;&#032;&#080;&#104;&#111;&#116;&#111;&#115;&#032;&#102;&#111;&#114;&#032;&#067;&#111;&#110;&#116;&#114;&#105;&#098;&#117;&#116;&#105;&#111;&#110;&#115;">Submit Your Flower Photo Contributions</a>

- as it'll fool most of the address harvesting spiders.

Hth. Cheerio,

--
>> derek...@casterbridge.net

Rick Murray

unread,
May 7, 2012, 10:26:07 PM5/7/12
to
On Mon, 7 May 2012 16:48:35 +0100, "Derek.Moody"
<derek...@casterbridge.net> wrote:
> <a href="&#109;&#097;&#105;&#108;&#116;&#111; etc
> - as it'll fool most of the address harvesting spiders.

Not mine. I wrote a little BASIC proggy many years ago as a proof of
concept as to why Argonet's user directory was an invitation. It
built a list of pages and scanned them, plus subpages three levels
deep (unless linked away from Argo (determined by IP lookup)). From
that, it extracted all mailto links and decoded glyphs, nospam
inserts, and the like. It also looked for text "at" and "@" to try to
retrieve non-link addresses. It found some, and decoded them. ;-) It
also filtered out common bogus addresses (whitehouse.gov, localhost,
etc).

The only thing it completely skipped was emails in images, 'cos my
maths isn't up to OCR code. Wouldn't have thought that'd be a laugh
in BASIC anyway. ;-)

I guess the level of result from a spambot depends upon the
competence of the programmer...


Best wishes,

Rick.

PS: The secret? Run the scan on a subset and ask it to keep
everything that "looks like" an address. Then go through it manually
coding rules. Then let loose, for most people munge their addresses
in very similar ways. God, imagine giving it "wiki recent changes" as
the input!

PPS: Don't think I have the code, it'll be on my dead 2Gb drive. It
was, however, a rainy Sunday's worth of code. It isn't hard, just a
bloody big array and a heap of decode rules. If I wrote it again, I'd
dump likely addresses to a file and process them afterwards, instead
of doing it during the scan...

Jeremy Nicoll - news posts

unread,
May 7, 2012, 10:48:28 PM5/7/12
to
"Derek.Moody" <derek...@casterbridge.net> wrote:

> Slightly better might be:
>
><a href="&#109;&#097;&#105;&#108; .... >
>
> - as it'll fool most of the address harvesting spiders.

Will it? Surely anything that simple valid HTML is going to be easy to
decode.

--
Jeremy C B Nicoll - my opinions are my own.

Email sent to my from-address will be deleted. Instead, please reply
to newsre...@wingsandbeaks.org.uk replacing "aaa" by "284".
0 new messages