Forum Moderators: open

Message Too Old, No Replies

Adding subject line to javascript email

need to be able to sort emails in Yahoo

         

Lorel

8:33 pm on May 5, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I use the following JavaScript to protect contact emails on websites from scammers and am wondering if there is a way to edit it so it adds a subject line so YahooMail can recognize mails from this source.

I don't know how to write Javascript so is there someone who can help me with the extra code?

<script type="text/javascript" language="JavaScript1.2">
<!--
// Courtesy of blahblahblah
// hide script
var stb_domain = "DOMAIN.com";
var stb_user = "USERID";
var stb_recipient = stb_user + "@" + stb_domain;
var stb_url = "mailto:" + stb_recipient;
var stb_visualName = "VISIBLE NAME";
document.write(stb_visualName.link(stb_url));
// -->
</script>

siMKin

8:41 pm on May 5, 2006 (gmt 0)

10+ Year Member



my guess is
var stb_url = "mailto:" + stb_recipient + "?subject=blaat";

Lorel

9:14 pm on May 5, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Thanks SiMKin

This looks like it's working.

Lorel