#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2001
    Location
    UK
    Posts
    4
    Rep Power
    0

    Email page to a friend


    Hi Guys!

    Please help me out.

    I am in the process of creating a web site which I hope to make database driven. I am only 16 and so on a very steep learning curve. I have a few page options on each page of my site and I want one of the buttons (an image of an email) to open up a blank email with the URL of the current page and possibly some text in the body.

    The user can then add/modify that text, enter an email address, add a subject, etc.

    I have searched all over the net to no avail - plenty of similar things but nothing like this.

    Hope you can help - Gareth
  2. #2
  3. Modding: Oracle MsSQL Firebird
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2001
    Location
    Outside US
    Posts
    8,527
    Rep Power
    539
    You are young so ... did not search the forums, anyway:
    This can be done client side with something like this (found searching): mailto:joey@company.com?body='<HTML page>'
    or with some servlet/jsp, try on www.hotscripts.com
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2001
    Location
    UK
    Posts
    4
    Rep Power
    0
    Hi Pablo

    Thanks for the reply - I have tried looking on hotscripts but cannot find what I am looking for. Is the code that you mentioned to be typed in exactly the same as you have written it or do you have to manualy replace <HTML page> with the html page?

    Will this work on PHP pages?

    Thanks again - Gareth
  6. #4
  7. Modding: Oracle MsSQL Firebird
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2001
    Location
    Outside US
    Posts
    8,527
    Rep Power
    539
    Why don't you try yourself?
    In php there is something similar, search and try to figure out.
    Client side should be something like

    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>

    <body bgcolor="#FFFFFF" text="#000000">
    <a href="mailto:yourself@yourmail.com?body=tryyourself.html
    ">try yourself</a>
    </body>
    </html>

    Notice that this thread is completely off topic here!!!
  8. #5
  9. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2001
    Location
    UK
    Posts
    4
    Rep Power
    0
    You've completely lost me now. Could you explain it in a bit more detail please.

    Thanks - Gareth

IMN logo majestic logo threadwatch logo seochat tools logo