This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Applets and the fly likes Applet to Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Applet to "send this page to a friend" feature" Watch "Applet to "send this page to a friend" feature" New topic
Author

Applet to "send this page to a friend" feature

LuisPerez
Greenhorn

Joined: Dec 15, 1999
Posts: 2
Hi everybody, I need to implement a link on a web page that would allow me to send an email to a friend with the link of the URL embedded in the body of the email.
Can anybody help ?
Thanks you can send emails to
"luis@mildatasol.com" with answers.
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
Well, I'd do this with server-side software rather than an applet. Sending mail from an applet is usually more trouble than it's worth.
If your server runs on a Unix or Linux system, a little CGI script which echoes a message including the $HTTP_REFERER url to "mail" with a mail id entered in a form textfield should do the trick. You may even be able to find a pre-written one in one of the many script archives on the web.
Or if you are feeling keen you could write a Java servlet to do the same job.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
LuisPerez
Greenhorn

Joined: Dec 15, 1999
Posts: 2
any idea where can I get a CGi script like it ?
thanks
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
I couldn't be bothered to look, so I wrote one. Check out:
http://www.io.com/~efficacy/friend/ftest.html
Be sure to download it soon, as I'll be removing it in a week or so. I don't really like having a freely-accessible mail sender on my site.
I hope it's useful.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Applet to "send this page to a friend" feature
 
Similar Threads
JBoss Seam and JSF
Sending HTML form to group email
Free (or open-source) mock exam engine
Displaying content on request
adding a jsp link within a email