473,803 Members | 3,030 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Subect setting in Mailto:

HI;

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

<a href="mailto:do **@cats.com">Ma il 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
13 7100
Gazing into my crystal ball I observed John Baker <Ba******@Veriz on.net>
writing in news:n9******** *************** *********@4ax.c om:

Please do not top post ...
Philip Ronan <in*****@invali d.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&b ody=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:...?subj ect=
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">Ma il 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*******@yourd omain.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
13304
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 urlencode($url) ?>">Send an Email</a> (I've had to URLENCODE the variables first, and it works. If I don't do so, then it doesn't work.) The problem occurs when it is time to display the encoded version. It
15
24765
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 window.location.href = 'mailto:myemail@mycompany.com?subject=test
12
2980
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" action="mailto:user@domain.com?subject=Daily numbers&body=window.this.document"> I would like for it to open the default email program and let me choose an address from that form. Is this possible? Any suggestions are appreciated. Elvis
15
29921
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 href="mailto:nobody@nowhere.com ?subject=Your web site &body=This%20is%20the%20%body!"> click here</a>
10
17304
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 href="mailto:registrar@econ.com?cc=webmaster@econ.com?subject=Login Problems">The Registrar at econ.com</a>
15
3259
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: " & session("firstName") & " " & session("lastName") & vbCrLf & "Email: mailto:" & session("email") & vbCrLf & vbCrLf & resumeBottom When the email gets to the person, the email link works. The problem is
4
1174
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 integreted using a non-root user. THe process I am using is to logon as postges and start the database and do queries from the command line using psql. Then I logoff and logon as phil and start tomcat and my java ide. 1.Is there a better way to...
2
6328
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 the email address has not been filled in because I don’t know how to pass the email variable into the mailto command. <asp:HyperLink runat="server"> <A href="mailto:">
4
1992
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 type="TEXT" name="subject">
0
9700
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
9564
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10546
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10310
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10292
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9121
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 projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7603
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 presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5627
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3796
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.