Forum Moderators: open

Message Too Old, No Replies

mail to subject

         

appleg5ive

5:59 pm on Apr 29, 2004 (gmt 0)

10+ Year Member



Is it possible to have a pre-set subject for a mailto link, so that when someone clicks the link, it not only opens up a new e-mail with your address, but with a pre-set subject too?

Reflection

6:09 pm on Apr 29, 2004 (gmt 0)

10+ Year Member



I think so although I havent tried it, something like mailto:blah@blah.com?subject=your subject.

tedster

6:23 pm on Apr 29, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, you can preset both subject and body if you want, by using an ampersand. It's best to use %20 for any spaces involved -- this is an href attribute, after all.

<a href="mailto:person@example.com?subject=Catalog%20Request&body=Please%20send%20me%20your%20catalog">Request a Catalog</a>