#1
  1. No Profile Picture
    RossL
    Guest
    Devshed Newbie (0 - 499 posts)
    I would like a button on a webpage that says "E-mail this page to someone".

    When clicked it launches the users e-mail application with that page in html form in the body of the message, ready for the address to be entered and sent.

    It's for the company intranet so browser and e-mail client compatibility is not an issue.

    Anyone any ideas?

    Thanks
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 1999
    Location
    London
    Posts
    110
    Rep Power
    0
    <a href=mailto:"">mail</a>

    that'll do the trick, as there is no address entered it will just launch the email client and however sticks in the address as normal

    just spotted the button bit, pop your img src in instead of the wording

    ------------------
    cheers


    [This message has been edited by timbo (edited January 28, 2000).]
  4. #3
  5. No Profile Picture
    RossL
    Guest
    Devshed Newbie (0 - 499 posts)
    I have the line

    <a href="mailto:enter e-mail address here?subject=This appears in the subject line&body=Body of E-Mail">

    Which is kind of fine but where I have "Body of E-Mail" I need the actual page that I am looking at through the browser.

    Pasting in the html code of the page doesn't work.

  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 1999
    Location
    London
    Posts
    110
    Rep Power
    0
    ah.. didnt realise you meant that, should of read it properly..doh!

    Anyway it is possible, do it as you were doing it but you need to encode the page, see the urlencode function and place that in the body (I think) sorry pretty useless reply really
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 1999
    Posts
    25
    Rep Power
    0
    Couldn't figure out a way to get the <form> example into this page
    so put it here: http://hammer.prohosting.com/~vfraze...r/viaemail.htm

    [This message has been edited by Vernon Frazee (edited January 31, 2000).]

Similar Threads

  1. Replies: 4
    Last Post: January 11th, 2004, 11:34 AM
  2. Use perl to remember parts of a webpage??
    By gaelicfootball in forum Perl Programming
    Replies: 2
    Last Post: September 18th, 2003, 08:32 AM
  3. Printing current webpage + IFRAME
    By Rivard in forum HTML Programming
    Replies: 0
    Last Post: February 18th, 2003, 01:03 PM
  4. Saving a complete webpage with a script
    By fatoaf in forum PHP Development
    Replies: 20
    Last Post: January 5th, 2003, 01:48 AM
  5. Replies: 2
    Last Post: January 25th, 2002, 06:54 AM

IMN logo majestic logo threadwatch logo seochat tools logo