473,414 Members | 2,030 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,414 software developers and data experts.

Subect setting in Mailto:

HI;

Quick question: How do I specify an email subject when using the setup

<a href="mailto:do**@cats.com">Mail to the cat</a>

Can someone show me how it would look if the subject was "mice"?

Thanks a lot

John Baker
Jul 24 '05 #1
13 7071
In article <<ev********************************@4ax.com>,> John
Baker (Ba******@Verizon.net) says...
HI;

Quick question: How do I specify an email subject when using the setup

<a href="mailto:do**@cats.com">Mail to the cat</a>

Can someone show me how it would look if the subject was "mice"?


It can't be done, at least not reliably; short of putting together
a FormMail-type script.

Stephan
--
Stephan Bird MChem(Hons) AMRSC
Currently in Caernarfon, Wales
Jul 24 '05 #2
Stephan:

How about unreliably, or alternativley, how would a script work that would give me the
same result with the message name?

Best

John

Stephan Bird <st************@mad.scientist.comREMOVE> wrote:
In article <<ev********************************@4ax.com>,> John
Baker (Ba******@Verizon.net) says...
HI;

Quick question: How do I specify an email subject when using the setup

<a href="mailto:do**@cats.com">Mail to the cat</a>

Can someone show me how it would look if the subject was "mice"?


It can't be done, at least not reliably; short of putting together
a FormMail-type script.

Stephan


Jul 24 '05 #3
"Stephan Bird" wrote:
In article <<ev********************************@4ax.com>,> John
Baker (Ba******@Verizon.net) says...
Quick question: How do I specify an email subject when using the setup

<a href="mailto:do**@cats.com">Mail to the cat</a>

Can someone show me how it would look if the subject was "mice"?


It can't be done, at least not reliably; short of putting together
a FormMail-type script.


Huh? What's unreliable about this?

<a href="mailto:do**@cats.com?subject=mice">Mail to the cat</a>

--
phil [dot] ronan @ virgin [dot] net
http://vzone.virgin.net/phil.ronan/
Jul 24 '05 #4
Previously in comp.infosystems.www.authoring.html, Philip Ronan
<in*****@invalid.invalid> said:
Huh? What's unreliable about this?

<a href="mailto:do**@cats.com?subject=mice">Mail to the cat</a>


It's really no less reliable than a plain mailto: link - i.e. if your
visitor doesn't have an email program installed/configured, it won't
work.

My objection to the above is that the person sending the email is much
more likely to know what they want to email you about than the person
developing the site. It's arrogant IMHO to assume that everyone who
follows that link wants to email you about the same thing.

--
Mark Parnell
http://www.clarkecomputers.com.au
Jul 24 '05 #5
"Mark Parnell" wrote:
Previously in comp.infosystems.www.authoring.html, Philip Ronan
<in*****@invalid.invalid> said:
<a href="mailto:do**@cats.com?subject=mice">Mail to the cat</a>


It's arrogant IMHO to assume that everyone who
follows that link wants to email you about the same thing.


You get a "Huh?" too.

Please explain what's so arrogant about these examples:

<a href="mailto:me@example.com?subject=Link%20Exchang e">Contact me if you
want to exchange links with this website</a>

<a href="mailto:me@example.com?s********************* **@example.com">
Unsubscribe</a>

<a href="mailto:me@example.com?subject=Quote%20reques t">Email me to request
a quote</a>

Mail sent using these links could be easily siphoned off to separate
folders, making life much easier for the site operator and probably
resulting in a quicker response to the sender.

What's wrong with that?

--
phil [dot] ronan @ virgin [dot] net
http://vzone.virgin.net/phil.ronan/
Jul 24 '05 #6
Previously in comp.infosystems.www.authoring.html, Philip Ronan
<in*****@invalid.invalid> said:
"Mark Parnell" wrote:
Previously in comp.infosystems.www.authoring.html, Philip Ronan
<in*****@invalid.invalid> said:
<a href="mailto:do**@cats.com?subject=mice">Mail to the cat</a>
It's arrogant IMHO to assume that everyone who
follows that link wants to email you about the same thing.

<snip> <a href="mailto:me@example.com?subject=Link%20Exchang e">Contact me if you
want to exchange links with this website</a> <snip other examples> What's wrong with that?


Those particular examples aren't so bad, as the link mentions one
specific reason for emailing. The original link above assumes though
that everyone who wants to send "Mail to the cat" wants it to be about
mice. Most email links on web sites are like that - just a simple
"Contact Me", rather than "Contact Me about blah".

--
Mark Parnell
http://www.clarkecomputers.com.au
Jul 24 '05 #7
"Mark Parnell" wrote:
The original link above assumes though that everyone who wants to
send "Mail to the cat" wants it to be about mice.


Oooh, how impudent! :-D

--
phil [dot] ronan @ virgin [dot] net
http://vzone.virgin.net/phil.ronan/
Jul 24 '05 #8
Just to clarify:

I have a web site where people sign up for various events, but the actual e-mails go to
only three people. They need the name associated with the button click because there may
be one of a dozen events involved. If the event is about mice (and the button says "Click
here to sign up for the event about mice"), they want the subject to say mice, and if the
event is about rats they want it to say rats. That way they can easily categorize the
e-mail (automatically) and respond to it.

Best

John

Philip Ronan <in*****@invalid.invalid> wrote:
"Mark Parnell" wrote:
The original link above assumes though that everyone who wants to
send "Mail to the cat" wants it to be about mice.


Oooh, how impudent! :-D


Jul 24 '05 #9
"John Baker" wrote:
Just to clarify:

I have a web site where people sign up for various events, but the actual
e-mails go to
only three people. They need the name associated with the button click because
there may
be one of a dozen events involved. If the event is about mice (and the button
says "Click
here to sign up for the event about mice"), they want the subject to say mice,
and if the
event is about rats they want it to say rats. That way they can easily
categorize the
e-mail (automatically) and respond to it.


That's fine.

Just remember to *escape* the subject line, otherwise the links won't work
(i.e. "...?subject=Hello%2C%20World%21", not "...?subject=Hello, World!").

There's a favelet that can do this for you. Just create a new shortcut
button in your browser's toolbar and copy this link into it (without the
line breaks, obviously):

javascript:void(prompt('Here%20is%20the%20converte d%20text.%20You%20can%20co
py%20this%20into%20your%20mailto%20link:',escape(p rompt('This%20tool%20makes
%20text%20safe%20for%20inclusion%20in%20mailto%20U RIs.%20Enter%20the%20subje
ct%20line%20here:'))))

--
phil [dot] ronan @ virgin [dot] net
http://vzone.virgin.net/phil.ronan/
Jul 24 '05 #10
Gazing into my crystal ball I observed John Baker <Ba******@Verizon.net>
writing in news:n9********************************@4ax.com:

Please do not top post ...
Philip Ronan <in*****@invalid.invalid> wrote:
"Mark Parnell" wrote:
The original link above assumes though that everyone who wants to
send "Mail to the cat" wants it to be about mice.


Oooh, how impudent! :-D


Just to clarify:

I have a web site where people sign up for various events, but the
actual e-mails go to only three people. They need the name associated
with the button click because there may be one of a dozen events
involved. If the event is about mice (and the button says "Click here
to sign up for the event about mice"), they want the subject to say
mice, and if the event is about rats they want it to say rats. That way
they can easily categorize the e-mail (automatically) and respond to
it.

Best

John


As previously mentioned, this sort of link is unreliable for several
reasons:
1. If the user does not have an email client, web based email users, users
at an Internet Cafe or library, at someone else's computer, etc.
2. The user can still change the subject of the email. You may have set
the subject to "mice", and the user can change it to "men". Now the
recipient has to futz with it.
3. Some email clients don't recognize that form of mailto, and skip the
subject all together.

You're better off doing it server side.
--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Jul 24 '05 #11
"Adrienne" wrote:
As previously mentioned, this sort of link is unreliable for several
reasons:
1. If the user does not have an email client, web based email users, users
at an Internet Cafe or library, at someone else's computer, etc.
That's totally irrelevant. The OP wanted to know how to add a subject line
to a mailto URI. If you must go on about the evils of mailto links, please
do it in another thread.
2. The user can still change the subject of the email. You may have set
the subject to "mice", and the user can change it to "men". Now the
recipient has to futz with it.
Indeed. And with an ordinary mailto link, the user could edit the email
address and cause the email to be sent somewhere else altogether. But so
what?
3. Some email clients don't recognize that form of mailto, and skip the
subject all together.


Can you back this up? I think probably not. Subject fields in mailto URIs
were already in use long before rfc2368 came out

--
phil [dot] ronan @ virgin [dot] net
http://vzone.virgin.net/phil.ronan/
Jul 24 '05 #12
Adrienne wrote:
3. Some email clients don't recognize that form of mailto, and skip the
subject all together.

You're better off doing it server side.


I've heard this alleged on several occasions, but I've never discovered
any browser/email client combinations which fail with ?subject= and
succeed without.

Is it a historical Netscape 2 kind of thing?

Can anyone furnish a list of email clients and/or browsers which exhibit
this behaviour ?

Similarly for ?body=blah or ?subject=what&body=that%20page ?
I've seen claims that there's a limit of 256 characters, and that
newlines (even escaped) aren't always well handled, but there's (as
ever) a lot of rubbish written, and I'd quite like to see an
authoritative statement on what issues exist around use of
mailto:...?subject=
That's both real world issues and specification issues.

And html links (<a href="mailto:...">) shouldn't be confused with html
form actions, where several browsers (anyone got a list) support mailto
in some way, but the spec doesn't.

Thanks
Chris
Jul 24 '05 #13
On Wed, 22 Jun 2005 19:35:13 +0000, John Baker wrote:
HI;

Quick question: How do I specify an email subject when using the setup

<a href="mailto:do**@cats.com">Mail to the cat</a>
Quick question: Whose bright idea is it to have the cat's email address
be do**@cats.com ?
Can someone show me how it would look if the subject was "mice"?

Thanks a lot

John Baker


If you have access to the server, I would create mail aliases which
automatically get forwarded to the people interested in that event. For
example, have mo*******@yourdomain.com for any correspondence about mouse
races.

aloha,
La'ie Techie

Jul 24 '05 #14

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

Similar topics

2
by: Bill Petrol | last post by:
I'm trying to send a link with a querystring as the body of an email message. My HTML syntax looks something like this: <a href="mailto:xxx@yyy.com?Subject=<? print $subject ?>&Body=<? print...
15
by: nAmYzArC | last post by:
Hi everyone, I'm setting the body of an email using values from a form firstname = bob lastname = dole ebody = 'First Name: ' + firstname + '\r\n' + 'Last Name: ' + lastname ...
12
by: ElvisIsDead | last post by:
Have a script that takes a form and emails it automatically. Here is the part: <form onSubmit="return editData();" name="estm" enctype="text/plain" method="post"...
15
by: Val | last post by:
Any experts on mailto: tags? I want to set a link so that the subject and some of the body of the email is filled in. This is easy for simple text, although you need to use %20 for spaces: <a...
10
by: Adam Smith | last post by:
How can I set up a mailto with a cc or bcc as well as a subject designation. The system works for two but not three, is this a hardwired limit or have I missed something ==> <a...
15
by: tshad | last post by:
I am trying to put an persons email address in a response I am sending another person. I can get it to work by doing the following: message.Body = resumeTop & vbCrLf & vbCrLf & "For Applicant:...
4
by: Phil Campaigne | last post by:
Hello, I originally installed postgresql as root user and now I am setting up a development environment with cvs and a java ide and tomcat. I have everything with the exception of postgresql...
2
by: =?Utf-8?B?UGV0ZXI=?= | last post by:
Hi, I want to create a mailto link from data coming from an SQLDataSource. How do I have to change the following code to get it working? The mailto works, outlook starts with a new message, but...
4
by: appkausman | last post by:
i am using IBSERVER and trying to mail a form to my email address my code is given below form.html <html> <head> </head> <body> <form method="POST" action="mail.php"> Name: <input...
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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
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
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
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.