in reply to Re^7: CGI-mailer script
in thread CGI-mailer script

But how this conform with my JavaScript code I have already? http://www.perlmonks.com/index.pl?node_id=383723 Need my JavaScript code be completely altered? Once script author asserted that its a ready code, and its required only set perl mail script. Yes, I need still many learn.

Replies are listed 'Best First'.
Re^9: CGI-mailer script
by gellyfish (Monsignor) on Aug 19, 2004 at 12:26 UTC

    Yes you will have to alter the javascript as other people have described. I'm not sure how the author of the javascript can describe it as "ready code" without specifying the interface requirements to the backend CGI program, I would suggest that you go back to the author and tell him the FormMail program you are using and ask him to change the javascript to submit the data in the required way. Either that or hire a programmer to write the CGI backend for you - in which case you might go to http://jobs.perl.org and post the requirements and how much you are prepared to pay.

    /J\

      here is script author reply: "There are two scripts involved here. My client-side script which runs in a Web browser is listed on my Web page. It is complete. However, I don't have access to the server-side CGI script which does the actual emailing. The script belongs to someone else, I just used it." Maybe someone can recommend ready javascript? Could the FormMail itself be customized for my javascript?

        The Javascript you have there relies on a CGI program that has a horribly insecure interface, as it appears that it allows the user of a web page to insert any e-mail and any text they went into a mail - which is of course ideal for the spammers, no one in their right mind is goin to alter a perfectly good, working and secure FormMail program so that it becomes a spam relay simply because you don't want to change some javascript.

        What I recommend is that you make another request to nms-cgi-support@lists.sourceforge.net including the code that you posted earlier and explain clearly that you would like to know how to interface that Javascript with the NMS FormMail, someone may be generous enough to give you the whole solution but we can give you the pointers.

        /J\