Mailto: With Subject

R

Ravi Sandhu

Hi all

How do I create a mailto hyperlink that will also populate the subject?

For example I want a link to send an email to (e-mail address removed) with Test
in the subject. Perhaps Even "Hey this is a test", in the body

How is this done?

What other things can be done using this link?

Thank you
 
S

Steve R.

Ravi Sandhu wrote in message ...
How do I create a mailto hyperlink that will also populate the subject?
For example I want a link to send an email to (e-mail address removed) with Test
in the subject. Perhaps Even "Hey this is a test", in the body

This will work SOMETIMES, but not NOT on all browsers.

<a href="mailto:[email protected]?subject=Test&amp;body=Hey this is a
test.&amp;">[email protected]</a>

Copy it to Notepad first, then copy the markup from Notepad the into the
program you are using to build your web pages.
 
S

Sid Ismail

M

Mark Parnell

(alt.html.writers snipped because it doesn't exist on my server)
How do I create a mailto hyperlink that will also populate the subject?

Mailto: is unreliable at the best of times. Adding additional
information (which isn't allowed in the specs, BTW) makes it more so.
The best solution is to provide a form the user can fill in. Include a
mailto: link as well if you like, but don't try and tell the user what
they are contacting you about - surely they know better than you do
anyway.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,815
Latest member
treekmostly22

Latest Threads

Top