The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Programming Languages
> Java Help
|
Email page to a friend
Discuss Email page to a friend in the Java Help forum on Dev Shed. Email page to a friend Java Help forum discussing all Java platforms - J2ME, J2SE and J2EE - as well as relevant standards, APIs and frameworks such as Swing, Servlets, JSPs, Applets, Struts, Spring, Hibernate, ANT, EJB, and other Java-related topics.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

December 28th, 2001, 10:08 AM
|
|
Junior Member
|
|
Join Date: Dec 2001
Location: UK
Posts: 4
Time spent in forums: < 1 sec
Reputation 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
|

December 28th, 2001, 10:43 AM
|
 |
Modding: Oracle MsSQL Firebird
|
|
Join Date: Jun 2001
Location: Outside US
|
|
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
|

December 28th, 2001, 11:41 AM
|
|
Junior Member
|
|
Join Date: Dec 2001
Location: UK
Posts: 4
Time spent in forums: < 1 sec
Reputation 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
|

December 29th, 2001, 02:13 PM
|
 |
Modding: Oracle MsSQL Firebird
|
|
Join Date: Jun 2001
Location: Outside US
|
|
|
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!!!
|

December 29th, 2001, 03:39 PM
|
|
Junior Member
|
|
Join Date: Dec 2001
Location: UK
Posts: 4
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
You've completely lost me now. Could you explain it in a bit more detail please.
Thanks - Gareth
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|