Re: My infamous script. Urgent need a help
- --- In firstname.lastname@example.org, "Charles K. Clarkson"
> kjhseka <kjhseka@h...> wrote:You are not harsh. Only the harshness helps people to be better
> : Thanks a lot of your reply....
> You're welcome. I hope I didn't seem too harsh.
programmers and write better scripts.
>The script is an email form. The website is commercial, the script
> Not necessarily. Why is it an email form? Is it
> an "email-a-friend" script? Could all email sent
> from the script be moderated first? Are you certain
> the form is necessary? Tell us why you are using it
> and perhaps we can provide you with alternatives.
allow customers to write me and ask informations. I need a form,
because it is more professional and this way I avoid to put my email
cannot copy it, but it is less professional than an email form.
> No. This is not a hackers forum. To make it moreWhat is perlsec? How can I get it?
> secure you might start by reading 'perlsec'. You might
> also have another look at email matching. Your currentI will improve it. But since I uploaded the scripts, spammers have
> regex fails valid email addresses.
not longer used it. It seems to work... But I will improve it again.
- kjhseka <kjhseka@...> wrote:
: The script is an email form. The website is commercial,
: the script allow customers to write me and ask
: informations. I need a form, because it is more
: professional and this way I avoid to put my email
: spam programs cannot copy it, but it is less
: professional than an email form.
I agree that you need a form, but emailing it
is more convenience than necessity. You could write
this information to a database or a file in a
Then you would access this data via your own web
browser or by a special script. There are many
advantages over email.
First, unencrypted email is not much better than
yelling your messages out a window. Storing your data
locally allows only those who have access to that data
to see it.
Second, a good interface to this might allow all
correspondence from this customer or this topic to
remain in one place. This makes the conversation
history conveniently available to all participants.
Third, solutions can involve multiple people
without a hassle. With email you'll need to send each
new person in the conversation all the email involved.
For complicated solutions that might be 10 or more
messages needing to be gathered.
With the database solution everything is in one
place, To add others to the conversation you need only
point out that conversation ID.
With a well-written database it should be possible
to add notes only the support side sees, easily locate
other conversations from this customer, and provide a
more secure, easier to use method of communicating with
You might look at some of the help desk software
that is available. PerlDesk comes to mind. It is made
to ease the burden of supplying a help desk to customers.
I have never installed one, but I do use them a lot.
: What is perlsec? How can I get it?
If you have a recent version of perl installed, you
already have it. At a command line prompt type:
If you are using ActiveState perl, it is available
in html format. You can view perl documentation online
: I will improve it. But since I uploaded the scripts,
: spammers have not longer used it. It seems to work.
: But I will improve it again.
You have the good attitude. I wish you the best of
luck with the script. I still think you should use a
module to send email if you continue to send it.
Email::Valid would be better for checking email
addresses than the regex you are using. Yours stops
valid email addresses from being used.
Feel free to come here for advice. We are always
happy to help other programmers fiddle with their
scripts. But be prepared to hear from those who advise
against sending email from CGI scripts.
Charles K. Clarkson
Mobile Homes Specialist