Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and the Yahoo Answers website is now in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

How do you add a "e-mail this page" to a Web page?

Many websites have the functionality to "e-mail this page" to someone else. Not the simple hyperlink method of using "mailto". Rather, what coding is needed to grab either the URL of a page or all the page contents inorder to send the information via email to someone? It appears that even Yahoo! Answers has this functionality.

3 Answers

Relevance
  • 2 decades ago
    Favorite Answer

    One option: (Free from the javascriptsource) - you can change variations to your own liking

    -----------------------------------------------------------

    <!-- TWO STEPS TO INSTALL EMAIL THIS PAGE:

    1. Copy the coding into the HEAD of your HTML document

    2. Add the last code into the BODY of your HTML document -->

    <!-- STEP ONE: Paste this code into the HEAD of your HTML document -->

    <HEAD>

    <SCRIPT LANGUAGE="JavaScript">

    <!-- Begin

    function initMail(form) {

    text = "Check out this page: " + window.location;

    form.message.value = "Hi " + form.sendto.value + " (" + form.to.value + "):\n\n"

    + text + "\n\nYour Friend,\n" + form.sendername.value + "(" + form.senderemail.value + ")";

    return (form.to.value != "");

    }

    // End -->

    </script>

    </HEAD>

    <!-- STEP TWO: Copy this code into the BODY of your HTML document -->

    <BODY>

    <center>

    <form name=emailform method=post action="http://cgi.freedback.com/mail.pl%22 target="_new" onSubmit="return initMail(this);">

    <input type=hidden name=subject value="** Check Out This Site! **">

    <input type=hidden name=message value="">

    <table>

    <tr><td colspan=2 align=center>Tell a friend about this page!</td></tr>

    <tr><td>Their Name:</td><td><input type=text name=sendto></td></tr>

    <tr><td>Their Email:</td><td><input type=text name=to></td></tr>

    <tr><td>Your Name:</td><td><input type=text name=sendername></td></tr>

    <tr><td>Your Email:</td><td><input type=text name=senderemail></td></tr>

    <tr><td colspan=2 align=center><input type=submit value="Ok!"></td></tr>

    </table>

    </form>

    </center>

    <p><center>

    <font face="arial, helvetica" size="-2">Free JavaScripts provided<br>

    by <a href="http://javascriptsource.com">the/ JavaScript Source</a></font>

    </center><p>

    <!-- Script Size: 1.63 KB -->

  • Anonymous
    5 years ago

    it is the place you employ a cyber web browser like internet Explorer, Firefox or Opera to study your emails jointly as they are nonetheless on the mail server. this grants the prospect to study your emails from everywhere that has internet get right of entry to. Yahoo and Google mail have cyber web based interfaces, as does Hotmail. It differs from POP3 digital mail, in that throughout the time of POP3 structures, you will acquire the e-mail on your laptop, and frequently delete it from the server on the same time. POP3 digital mail demands a customer including Outlook show, Outlook, Thunderbird, Pegasus, Sea Monkey etc.

  • 2 decades ago

    you need to be using an html pre processing lanbuage, such as php, asp, coldsusion, cgi, etc.

    you need to be able to read the current url, then place that into the body of an email. each language has their own way of doing this.

    its not something that you can do with just html

    Source(s): first hand knowledge.
Still have questions? Get your answers by asking now.