MSMVPS.COM
The Ultimate Destination for Blogs by Current and Former Microsoft Most Valuable Professionals.
Create a "send to friend" email link

Do you want your page visitor to be able to send the URL of your page to a friend recommending it? A "Send to a friend" email link. This is known as a "mailto" link. Such a link will cause the browser to open the registered default email client. With a little bit of code added to the link you can auto-fill the message subject and body.

You can only use this in Publisher with a HTML code fragment. Open the fragment dialog and paste the following code snippet:

<A HREF="mailto:?subject=Recommended&body=I recommend visiting this page. http://www.publishermvps.com/default.aspx" TITLE="Send to a friend">Send to a friend</A>

After 'subject=' and before '&body' you can modify the text you want in the message subject line. Obviously after '&body=' you can customize the body section of the message.

Then close the dialog having positioned the fragment on the page where you want the link to appear.

If you prefer an image rather then the "send to a friend" text you simply swap that text with the code for an image.

Which looks like  <IMG SRC=http://mysite.com/myimagefile.gif"/>


Posted Mon, Jan 16 2006 18:08 by David


Copyright © is the original authors. Blog site is an independent site not sponsored by Microsoft. The Yoda blog server and the Brianna SQL server would like to thank www.ownwebnow.com and www.exchangedefender.com. They wouldn't be here and broadcasting without the generosity of Vlad Mazek and his companies.

Powered by Community Server (Commercial Edition), by Telligent Systems