Solved

Email links?

Posted on 1998-08-19
7
159 Views
Last Modified: 2010-04-09
Is there anyway to attach some tag to an email link (eg: mailto:)
so that the subject lines and/or message body has text already
added for the user? I would like the subject line to say some thing
like: Info on Products please. etc. and the message body to include
words like Name: Address: PH.Number, so that an email inquiry will
be received with enough information.

TIA
Lloyd
lloyd@nfld.com
0
Comment
Question by:Luby
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 2

Expert Comment

by:vendrig
ID: 1836825
The subject is easy:
<A HREF="mailto:clinton@whitehouse.org?subject=dress">mail me</a>
I think you don't can put body messages there. That would be
possible using a form, but then the users would have to type their messages in a form textarea, not in their own mail program.

0
 
LVL 8

Expert Comment

by:jbirk
ID: 1836826
Actually it's quite easy to put content into the body.  Looks like this:
"mailto:someone@somewhere.com?subject=some subject here&body=this is the body"

-Josh
0
 
LVL 2

Expert Comment

by:vendrig
ID: 1836827
Josh is right, that's what you want.
Enjoy it.
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
LVL 12

Expert Comment

by:Otta
ID: 1836828
Caution: some web-browsers take:

     "mailto:someone@somewhere.com?subject=some subject here&body=this is the body"

and put *everything between the "colon" and the "closing-quote"
into the 'To:' field. Hopefully, the user will notice this,
and use cut-and-paste to move 'some subject here' into the
'Subject:' field, and move 'this is the body' into the "body"
of the E-mail message.

Since you cannot control which browser the user uses,
just be aware that you may receive E-mail with a 'Subject:'
which does not match what you embedded in the 'mailto:' tag.


0
 

Author Comment

by:Luby
ID: 1836829
Post it again Josh so I can give you the points.
It seems to be fine.
Luby
0
 
LVL 8

Accepted Solution

by:
jbirk earned 50 total points
ID: 1836830
Thanks a lot Luby!
-Josh
0
 

Author Comment

by:Luby
ID: 1836831
Sorry I took so long to respond
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question