Mailto link with subject?

T

Tom [Pepper] Willett

You can prefill the subject line in the email by adding the subject preceded
by '?subject=' after the email address.

So the link now becomes:

<a href="mailto:[email protected]?subject=Mail from Our Site">Email
Us</a>
--
Tom [Pepper] Willett
Microsoft MVP - FrontPage
"You're a daisy if you do!"
---
FrontPage Support:
http://www.frontpagemvps.com/
===

: Is it possible for a mailto link to include a subject as well?
:
: <a href="mailto:[email protected]">
 
M

Mike Mueller

You can also expand on that by adding in a ?cc= for carbon copies and ?bcc=
for blind CCs.

I will also warn you that once the search engines index your web pages with
mailtos: on them, the email harvesters will not be too far behind. My
recommendation is to use a form and a server side script to eliminate that
threat.

A few years ago, I wrote a script for someone and had my addy in the script
in case he needed help. He posted that entire script here and that addy now
gets ~50 spams a day.



RoadKill said:
Brilliant!

Thank you

Tom [Pepper] Willett said:
You can prefill the subject line in the email by adding the subject
preceded
by '?subject=' after the email address.

So the link now becomes:

<a href="mailto:[email protected]?subject=Mail from Our Site">Email
Us</a>
--
Tom [Pepper] Willett
Microsoft MVP - FrontPage
"You're a daisy if you do!"
---
FrontPage Support:
http://www.frontpagemvps.com/
===

: Is it possible for a mailto link to include a subject as well?
:
: <a href="mailto:[email protected]">
 
R

RoadKill

Yeah, I am aware of that aspect as well. But this is strictly an intranet
site so that shouldn't be an issue for us. Thanks for the thought though.

Mike Mueller said:
You can also expand on that by adding in a ?cc= for carbon copies and ?bcc=
for blind CCs.

I will also warn you that once the search engines index your web pages with
mailtos: on them, the email harvesters will not be too far behind. My
recommendation is to use a form and a server side script to eliminate that
threat.

A few years ago, I wrote a script for someone and had my addy in the script
in case he needed help. He posted that entire script here and that addy now
gets ~50 spams a day.



RoadKill said:
Brilliant!

Thank you

Tom [Pepper] Willett said:
You can prefill the subject line in the email by adding the subject
preceded
by '?subject=' after the email address.

So the link now becomes:

<a href="mailto:[email protected]?subject=Mail from Our Site">Email
Us</a>
--
Tom [Pepper] Willett
Microsoft MVP - FrontPage
"You're a daisy if you do!"
---
FrontPage Support:
http://www.frontpagemvps.com/
===

: Is it possible for a mailto link to include a subject as well?
:
: <a href="mailto:[email protected]">
 

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

Top