Forum Moderators: open

Message Too Old, No Replies

Email lInk

How do you insert subject line

         

kris

8:39 pm on Dec 17, 2001 (gmt 0)

10+ Year Member



How do you insert an email link with the subject line already defined?

bruhaha

10:01 pm on Dec 17, 2001 (gmt 0)

10+ Year Member



All you have to do is add "&subject=[subject matter]" to the a href tag, thus:
a href="mailto:address@yoursite.com&subject=What you want in the subject line"

txbakers

10:16 pm on Dec 17, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can add other items as well this way such as cc:, bcc: and even the body of the mail with "body" (I believe).

Xoc

10:41 pm on Dec 17, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I posted about the mailto: spec in this thread: [webmasterworld.com...]

kris

11:23 pm on Dec 17, 2001 (gmt 0)

10+ Year Member



Thanks for the help!

rcjordan

11:30 pm on Dec 17, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I used to add the subject line with a tag, but a fair percentage came in with tag coding visible so I discontinued it, figuring that it was causing problems on the user's end.

bruhaha

4:35 pm on Dec 18, 2001 (gmt 0)

10+ Year Member



(Correction to my note above)

Please note that, you must subsitute the code "%20" when you want a space to appear.

If you write "&subject=What you want", the code will break at the space. The e-mail you receive will have a subject of "What.

You must, rather, write:
a href="address@yoursite.com&subject=What%20you%20want"