Brian said:
Yes, it works --- Copy the text below making sure that the
document.write line is all on one line.
<snip>
No it does not work (unless you use a very restricted criteria for
"works"). The first problem is the mailto: protocol, which pre-supposed
that the browser is configured to employ a default e-mail program (or
can act as one itself) and that that e-mail program is itself
appropriately configured. On an Intranet that can be expected to be the
case, but on the Internet the existence and use of a web browser implies
nothing about e-mail software, its availability, configuration or
functionality.
The next problem is attempting to append a subject to the message. I was
asked to do this some years ago on an Intranet that used Lotus notes as
an e-mail client. It worked with the basic mailto URL, opening the
appropriate part of Lotus Notes with the e-mail address in the "To"
line, but attempting to add anything else (subject, body etc.) promptly
stopped it from working at all. (A server-based alternative was
eventually used instead)
So while Outlook might allow all sots of possibilities in mailto URLs
beyond the basic recipient address, using any of them is actually likely
to render the result non-functional with other e-mail programs.
With such a list of problems stacking up against mailto URLs in use on
the Internet, it is now generally accepted that they are terminally
broken and should be abandoned in favour of server-side alternatives,
which are available as remote services so local server-script support is
not even required in order to avoid the mailto problems.
Richard.