Forum Moderators: open

Message Too Old, No Replies

Need a good Javascript for "E-mail This Page to a Friend"

         

stuntdubl

4:18 pm on Sep 10, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I am trying to find a nice unobtrusive javascript that I can use to put "E-mail this page to a friend" on every page.

Ideally, the above message would be a link that goes to a new page that stores the address of the previous page and mails it to whomever they choose with a message.

I know this should be easy, but I am terrible at javascripting (or even modifying them), and I was hoping someone here had seen a good one around somewhere.

Thanks in advance.

jk3210

4:30 pm on Sep 10, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<SCRIPT LANGUAGE="JavaScript">function mailpage()
{
mail_str = "mailto:?subject= Check this link --> " + document.title;
mail_str += "&body= " + document.title;
mail_str += "... at: " + location.href;
location.href = mail_str;
}
</SCRIPT>

Then the link to it:

<a href="javascript:mailpage()" target="_top">Send this link to a friend</a>

korkus2000

5:06 pm on Sep 10, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I would consider another option for emailing than javascript. It only works for people who have client email software set up. Web mail won't handle this.

stuntdubl

8:30 pm on Sep 10, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What would you suggest as an alternative Korkus?

martinibuster

8:44 pm on Sep 10, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



hotscripts.com [hotscripts.com]. They have over 50 scripts to handle this. Some cost money some don't. Most are free or ridiculously affordable.

The perl scripts have varying levels of functionality. Some of the funtionality choices include the ability to append the emails into a database, spam protection, swear word filtering, ip banning- lots of choices, from the simple to the complex.

Some scripts email the page content, some scripts send a link to the content. Review each script carefully before choosing. This could take some time...

Fruit and Veg

9:09 pm on Sep 10, 2003 (gmt 0)

10+ Year Member



Do people actually those?

I never had. Just wondering, not flaming :)