• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Applet to "send this page to a friend" feature

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
LuisPerez
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
any idea where can I get a CGi script like it ?
thanks
 
Frank Carver
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic