Thursday, July 30, 2009

How can I find HTML code that will put a button on my webpage that will let the viewer to send page as email?

I am able to create webpages using some off the shelf creation software, but I need specific code that will allow my viewers to send the page they are viewing as e-mail. Is there a site that will have some predefined HTML code for these types of specific purposes?

How can I find HTML code that will put a button on my webpage that will let the viewer to send page as email?
What you need is a CGI program on the server your page is on. You can write HTML code to access the program but the program has to be there already.





Most free web hosting sites already have a selection of CGI scripts you can use, as well as samples of the HTML you need to access them. For example, if you use Angelfire/Lycos, go to http://www.angelfire.lycos.com/build/scr... to see what I'm talking about. A free site probably won't have exactly the script you describe, but they have other scripts that can send data to various sources so there might be something that can accomplish what you want.





If your page is on your own server then you'll have to upload your own CGI script, which you can probably get for free somewhere.
Reply:First, you have two problems. One, HTML cannot do what you ask. Two, if you are using a free web hosting site, like geocities, you are not able to do what you need.


The reason is that you need a background application, or script, to access the mail server, generate the email, and attach the webpage. These free services will not allow you access to their servers, and they do not allow executable scripts on free hosting sites. Sorry, that is the price of getting it for free.


However, if you are paying for internet service they I would start searching for a company to create a script for you, pay for it. Or learn another language and program it yourself. That is the only option.


No comments:

Post a Comment