SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: E-mail page

  1. #1
    SitePoint Zealot
    Join Date
    Nov 2006
    Posts
    166
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    E-mail page

    Im trying to write a script that will allow the current url page to be shown in the body of generated e-mail after clicking a link on the webpage. In theory, the body of the e-mail it will hopefully capture a screenshot of the page.

    Below is a script I tried but it doesnt seem to work:

    ********************************************

    <html>

    <head>

    <script language="javascript">
    function mailpage()
    {
    mail_str = "mailto:?subject=&body=email.htm";
    email.htm = mail_str;

    }
    </script>


    </head>

    <body>


    <A HREF = "javascript:mailpage()">E-mail This Page</A>


    </body>

    <html>


    ************************************************

    Id appreciate any help with this.

    Thanks

  2. #2
    SitePoint Wizard Pepejeria's Avatar
    Join Date
    Jan 2005
    Location
    Too far up north
    Posts
    1,566
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can do this without JavasScript:
    http://www.ianr.unl.edu/internet/mailto.html


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •