Gossamer Forum
Home : General : Perl Programming :

"mail this article" cgi

Quote Reply
"mail this article" cgi
Hi,
Just wondering if anyone out there knows a good perl cgi that can do the following:

1) receive hits from an "email this article" link within a normal HTML page (so that every page has a nice, simple link, i.e., to <http://host.com/cgi-bin/send.pl>),
2) using the HTTP_REFERER environmental variable, reflect the TITLE of the article at the top of a simple mailto form that asks for recipient & sender name & email,
3) suck up the html article, strip out the html, format nicely, then email to the recipient.

The nytimes.com site is a very good example of what i'm looking for. Any suggestions?

thx,
Neal

Quote Reply
Re: "mail this article" cgi In reply to
Birdcast...

You can find links to this script in quite a few Threads throughout the Support Forum and also via the Recommend It Modification for Links 2.0 in the Resource Center.

Also...try using http://www.hotscripts.com to find Perl and other web scripts...Wink

Regards,

Eliot Lee

Quote Reply
Re: "mail this article" cgi In reply to
Hey, thanks very much. I had never seen the "hotscripts.com" site, and after sifting around a bit I found
http://www.conservatives.net/...pts/mailarticle.html which seems to be a good raw script to start with.

thanks again for the help,
Neal

Quote Reply
Re: "mail this article" cgi In reply to
You're welcome...BTW: http://www.hotscripts.com uses Links SQL and it is a better directory than www.cgi-resources.com IMHO.

Regards,

Eliot Lee