Click to See Complete Forum and Search --> : Think I have a problem with sendmail in script?


happy100
12-08-2005, 11:36 AM
Hi

I purchased a script called 'Link Tracker' a few months ago and I cannot get a response from the company I brought it from and their web site has been down for some time now.

Basically the script adds to a log every time a external web link is clicked from within my site and it is meant to send an email to the owner of that web link.
The logging part works ok, but I cannot get it to send out the email.
There is an admin page where the links and their corresponding email addresses are entered.

Here is a test page - http://cswu.netfirms.com/clicktest.htm

I thought is may have been my web hosting company, but I'm now testing it with someone else and it still won't send?

I know very little about coding, hence I brought the script, but the script just seems to be numbers when opened, here is the first few lines -

#!/usr/bin/perl
require "config.pl";
$AXJXSXOXHXJXGXJXYXJXGXDXRXYXZXXYXZDXFXGXBVXAXQX="13l10l36l97Xl103l101l110l116l61l36l69l78l86l+123l39l72l84lZ84l80l95l85l83l69lX82l95l65l71l69l78l84-l39l125l=59Zl13l10l36l114l101l102l117l114l108l61l36l69l78l86=l123l39l72l84l84l80l95lX82l69l70l69l82l 69l82l39l125l59l13l10l40l36l-83l101l99l111
l110l100l44l32l36lZ77l105l110l117l116l101l44l32l36l72+l111l117l114l44l32l36l68lZ97l121l44l32l36l77l1 11l110l116l104l44l32l36=l89l101l97l114l44Xl32l36l87l101l101l107l68l97l121l+44l32l36l68lZ97l121l79l10 2l89l101lX97l114l44l32l13l10l36-l73l115l=
I'm not really sure where to go from here?
Can anyone help me out either with trying to fix this script or even start with a new one?

Many thanks, Happy.

FromU2ME
12-08-2005, 01:06 PM
The script you are showing is probably encoded for faster parsing - though I haven't seen anything like this in Perl, just in PHP! It's either that or you've been ********!

Is the config.pl the same?

happy100
12-08-2005, 02:35 PM
No the config.pl is ok and editable.
The script for logging links works fine and the admin access via a browser works ok to, it's just the sending of emails that seems to be the problem.
There are a number of files that make up the working script -

admin.cgi
config.pl
header
linklist
style.css
track2.gif
tracker.cgi
index.html
logs <dir>
reflogs <dir>
readme.txt

It's just the admin.cgi & tracker.cgi files that have this number coding?

The main thing I really want is a perl/cgi script that will log clicked link and their referring page, with the ability to send an email to the owners address when clicked.
If I can't get this one working, does any one know of such a script?

Cheers, Happy.

happy100
12-09-2005, 02:37 AM
If I wanted to get a quote for someone to write a custom script for me, any ideas where I would go?

Cheers, Happy.

gozarca2
12-11-2005, 12:18 PM
did you try mailx?

happy100
12-16-2005, 06:58 AM
Thanks, I'll have a look at that, but I know very little about coding.

Cheers, Happy.