View previous topic :: View next topic |
Author |
Message |
svankamon -
Joined: 01 Apr 2007 Posts: 148 Location: Chesterfield UK
|
Posted: Mon Oct 01, 2007 12:22 pm Post subject: Perl path and other possible errors |
|
|
Hi, id just like to ask a few questions to ne of you perl experts out there.
Firstly scripts require that you name the PATH to perl. Is the below correct.:
#!\C:\Perl\bin\perl
Should it begin with a slash?, is there a slash between C: and Perl.?
I have a downloader script that requires use of a mail server to mail files automatically to subscribers/users.
The admin works ok and the script seems to be fine but it doesnt send the email.
Here are a few details.?
Path to perl =
#!/C:/Perl/bin/perl
Paths to html/image/and cgi files =
$scriptpath="http://mydomain/cgi-bin/autoresponder/ar.cgi";
$htmlpath="http://cartouche.org.uk/html";
$imgpath="http://cartouche.org.uk/html/img";
Path to mailserver. (hMailServer) =
$mailprog="C:/Program Files/hMailServer/Bin/";
Can anyone sugest why the mail doesnt get sent.? or any other posibilities.
Also is the base of the path EVERYTHING leading up to the main file except the domain name. For example if my cgi file is in
D:docs\cgi-bin\downloads\file.cgi
And if my index domain is to D: docs\
Is my base path: \cgi-bin\downloads\
Thanks for anty respoonce to this. I know there are a few quieries her but that master of perl knows what im asking. Thanks for any help. May the force be with you always. |
|
Back to top |
|
|
svankamon -
Joined: 01 Apr 2007 Posts: 148 Location: Chesterfield UK
|
Posted: Mon Oct 01, 2007 12:26 pm Post subject: Sorry about spelling mistakes |
|
|
Its early, now enough caffein yet..Thanks. |
|
Back to top |
|
|
admin Site Admin
Joined: 03 Mar 2002 Posts: 1296
|
Posted: Tue Oct 02, 2007 12:35 am Post subject: Re: Perl path and other possible errors |
|
|
svankamon wrote: | Hi, id just like to ask a few questions to ne of you perl experts out there.
Firstly scripts require that you name the PATH to perl. Is the below correct.:
#!\C:\Perl\bin\perl
Should it begin with a slash?, is there a slash between C: and Perl.? |
In other Web server, this is required. But Abyss Web Server does not require it. If you declare Perl as instructed in http://www.aprelium.com/abyssws/perl.html , Abyss Web Server will rely on the script extension to know which interpreter to run. That line is therefore not necessary.
svankamon wrote: |
I have a downloader script that requires use of a mail server to mail files automatically to subscribers/users.
The admin works ok and the script seems to be fine but it doesnt send the email.
Here are a few details.?
Path to perl =
#!/C:/Perl/bin/perl
Paths to html/image/and cgi files =
$scriptpath="http://mydomain/cgi-bin/autoresponder/ar.cgi";
$htmlpath="http://cartouche.org.uk/html";
$imgpath="http://cartouche.org.uk/html/img";
Path to mailserver. (hMailServer) =
$mailprog="C:/Program Files/hMailServer/Bin/";
Can anyone sugest why the mail doesnt get sent.? or any other posibilities. |
Most Perl scripts expect a sendmail compatible program to help them send the emails. So the path here should be of that sendmail program and no of your mail server.
If you're using Windows, Blat is recommended to act as a sendmail compatible sender. Blat is available from http://www.blat.net/ .
You should configure it to relay the email through your own server 127.0.0.1 (if you have an SMTP server installed). Otherwise, set it to relay emails through your ISP's SMTP server (the outgoing email server). _________________ Follow @abyssws on Twitter
Subscribe to our newsletter
_________________
Forum Administrator
Aprelium - https://aprelium.com |
|
Back to top |
|
|
|