Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Jul 2002
    Location
    Tennessee
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Email page from Web

    Question - I want to add something to a web page that I have designed. I want to give the person the ability to email the page that they are looking at. Most of the web sites that I have looked at bring up a form for you to enter an email address and then it sends the information. I would like to make a print screen of the web page in the body of the email for them to send to whomever. I would like when they select Email Page that it open the person's default email program. The information that we would be sending would be duynamic information and not static

  • #2
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts
    You will probably need to use a server-side language such as PHP to do that.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #3
    New Coder
    Join Date
    Jun 2002
    Location
    yorkshire, uk
    Posts
    65
    Thanks
    0
    Thanked 0 Times in 0 Posts
    maybe you could just send a link to the page?

    using the persons default email it is quite easy (i think).

    this kind of code:

    window.location = "mailto:" + emailAddress + "&subject='come to this page'&body='" + window.location + "'"

    you have to define the variable emailAddress (eg from a form). all this does is send an email with a link to the current page - maybe not what you're looking for. if you need to actually send the html content of a page in the email, you will probably need a server-side language. but this idea would work as a minimum.

    lots of websites do have an 'email this page' form, i'll try to find out how this works.
    neil.c

  • #4
    New to the CF scene
    Join Date
    Jul 2002
    Location
    Tennessee
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for the responses - any help is greatly appreciated.

    jenny

  • #5
    Regular Coder bacterozoid's Avatar
    Join Date
    Jun 2002
    Location
    USA
    Posts
    490
    Thanks
    24
    Thanked 35 Times in 35 Posts
    Well, instead of sending a 'Print screen' of the page, which would send only a picture of the monitor and be a large image, you could look for a way to send the HTML for your page through E-mail. If the person's E-mail program supports HTML email then they would see your web page - A link though would also work.


  •  

    Posting Permissions

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