Re^4: CGI-mailer script
by Anonymous Monk on Aug 17, 2004 at 18:35 UTC
|
I am not very familiar with perl.This Javascript intended for automatic gathering of visitors data(statistic)and sendings it via email. The visitor should not fill any forms. Its a web statistic script. | [reply] |
Re^4: CGI-mailer script
by santander (Acolyte) on Aug 18, 2004 at 09:05 UTC
|
Here is some misunderstanding, it seems.
This JavaScript is website visitors logger, it collects the visitors data and then should pass data to cgi-mailer. All this automatically, visitors should not type/fill any forms. CGI-mailer script task is just mail data to my email. Web host on which I plan to set CGI-mailer, supports the net::smtp. The JavaScript will be placed on another web host, NOT on the same host with CGI-mailer. What CGI-mailer I can use and how to configure cgi-mailer and JavaScript itself? I am not familiar with Perl. | [reply] |
|
|
You should simply ditch the JavaScript approach and ask your web provider to give you the access log files, preferably in the Common Log Format, or even better, in any format you specify. That way, you get also the accesses that come onto your site which don't use JavaScript.
| [reply] |
|
|
My provider does not give me such service. I dont want stop on half of way, I would like to try this approach all the same. I understand, that the most folks here dont like JavaScript(I do not know why), I can understand when folks hate Microsoft. Could someone help with this problem? I just have briefly described my problem, but I do not know a Perl code enough to make it.
| [reply] |
|
|
I already explained this to you on the NMS support list, but just for the record I'll say it again here. It is relatively trivial to have a form with hidden fields which can be populated by Javascript, you can have FormMail as the action of the form and have the Javascript automatically submit the form, sending all of the content of the hidden fields to FormMail which will then send it on in an e-mail, if you wish you can suppress the output of the confirmation page. If you want help with the Javascript part of this then you are probably better asking Somewhere else.If you have questions specific to the installation and configuration of the NMS FormMail then you should post those on the NMS support list.
/J\
| [reply] |
Re^4: CGI-mailer script
by santander (Acolyte) on Aug 19, 2004 at 09:15 UTC
|
Hosting service support Sendmail. Its location is
usr/lib/sendmail Could you recommend appropriate perl mailer script?(it will get data from Javascript which will log statistic data) Perl script should mail data automatically, no user interaction required. Cgi-mailer should not need to reside on the same server as the JavaScript that use it. | [reply] |
|
|
You could easily get the "improved formmail" script to do what you want. It's on the nms-cgi site. See my post above for the address.
| [reply] |
|
|
Well, I got the 'Formmail script', unzip it and read manual. There are few HTML source examples for the forms. But how configure this script work the way I need: I dont need send any forms, the task is send my logs data received from JavaScript(send automatically)?
| [reply] |
|
|
|
|
|
|
|