Others have installed this script on NT and used sendmail.exe
in place of sendmail. More specific NT info will be added once I receive it.
If you use this script on NT please drop me a line at
If you use this script at all send me a note and I will add you to the list of
sites below.
In the
Sample index page
above, notice that the Note that the full sized image and the
thumbnail image must have the same name! Therefore they must also be
in seperate directories of course.
Full URL to your postcard homepage
Number of days to keep a card in the database before removing it.
Full path to postcard data file. The program will create this file.
Keep in mind that the postcard program must have write permissions
to the directory containing the file. Ideally, postcard.cgi will run
with your userid, but it may not. Speak to your admin.
Full or relative URL location of images. Postcard will read the filename from
the name of the <input type=image name=``foo.gif'' src=``/photos/foo.gif''> tag.
The reason for this is you may instead have a tag like so
$IMG_URL
directory. Make sense?
This is the return address users get their postcard notice from. You may or
may not want it to be a valid address.
On UNIX, ask your admin or type `` Most likely this is correct if you are on a unix system, but On NT or Win95
you'll need to find something like sendmail.exe
ftp://ftp.microsoft.com/developr/drg/unix-to-windows/ports/sendmail/ or
blat.exe http://gepasi.dbs.aber.ac.uk/softw/Blat.html . I just found this
page which might help you solve email troubles on NT as well
http://www.geocities.com/SiliconValley/Park/8312/mail.htm
If on NT you may have to make a change ti sub
notifyRcpt
.
This is only necessary for Windows machines. UNIX sendmails are smart
enough to figure this out on their own. If you don't know what to
put here ask your internet provider.
This is only used by NT. We write the email temp file here.
Set to a non zero value to enable admin to snoop on postcards.
Password to be used by the admin to snoop on postcards.
Location users come to for claiming a card.
``?code=____'' will be added automatically by
notifyRcpt
.
Hint: This also matches your action atribute of your index form and will
probably have /cgi-bin/ in it.
Before this URL is given to the user the script will tag the pickup code
to it. Example: http://www.bewley.net/psotcard/postcard.cgi will be shown to
the user (in their notification mail) as
http://www.bewley.net/postcard/postcard.cgi?code=8756611dale@bewley.net
The subject of email notifications sent to users by
notifyRcpt
.
Location of thumbnails relative to images. This is unused right now, but
makeIndex
will use it eventually.
Given a second argument sub will not print the http header for the postcard.
This is usefull when snooping with sub
snoop
.
Later, add template support.
If
$NT
is non-zero email is first written to a temp file and
then mailed using
$MAIL_PROG
.
Examples of sites using BIS Postcard.cgi
Add template support for postcard output.
Add a feature that will automatically create the thumbnail index
so you can just drop postcard.cgi into a dir of graphics and run with it.
Create a database enabled version. MySQL, dbm, ...
INSTALLATION INSTRUCTIONS.
Tips for index page
.
Here to pickup a postcard?
src is pointed to a
thumbnails directory while the name is simply the image name.
The script will use the name attribute, ``r-baskt.jpg'',
and the
$IMG_URL
variable to deduce the location of the full sized image
for use on the actual postcard.
User Configurable Variables
You will need to configure the following variables for your site.
.
which sendmail'' to find out if this is
the correct path to sendmail. Sometimes it is /usr/sbin/sendmail.
Subroutines
.
Other Postcard Sites
Do you use postcard.cgi? Let me know.
Todo
Bewley Internet Solutions perl page - sales@bewley.net