Click to See Complete Forum and Search --> : Email Verification
Thailand_for_YO
09-13-2003, 02:34 AM
Currently, I'm using the wel.cgi (Web Email Light) script for all my forms. Unfortunately, the support for this script is no longer available, but it's reliable, secure, with good parse and do exactly what I want, with the exception of Email verification.
I found another CGI script that do only Email address verification according to the RFC822, and it is 100% reliable.
What it would take to combine the 2 scripts to work together in the way that when entered email is invalid, the user will get alerted (possibly using a javascript).
96turnerri
09-13-2003, 10:43 AM
can you please put some of the script/coding on this thread so that i can look at what you mean exactly ty
Thailand_for_YO
09-13-2003, 12:42 PM
96turnerri
can you please put some of the script/coding ...
ty [/B]
If you meaning the email verification script, here is some of the coding:
package Mail::RFC822::Address;
use strict;
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK);
require Exporter;
@ISA = qw(Exporter);
# Items to export into callers namespace by default. Note: do not export
# names by default without a very good reason. Use EXPORT_OK instead.
# Do not simply export all your public functions/methods/constants.
@EXPORT_OK = qw( valid validlist );
@EXPORT = qw(
);
$VERSION = '0.3';
my $rfc822re;
# Preloaded methods go here.
my $lwsp = "(?:(?:\\r\\n)?[ \\t])";
..........................................................
=head1 DESCRIPTION
Mail::RFC822::Address validates email addresses against the grammar described
in RFC 822 using regular expressions. How to validate a user supplied email
address is a FAQ (see perlfaq9): the only sure way to see if a supplied email
address is genuine is to send an email to it and see if the user receives it.
The one useful check that can be performed on an address is to check that the
email address is syntactically valid. That is what this module does.
This module is functionally equivalent to RFC::RFC822::Address, but uses
regular expressions rather than the Parse::RecDescent parser. This means that
startup time is greatly reduced making it suitable for use in transient scripts
such as CGI scripts.
=head2 valid ( address )
Returns true or false to indicate if address is an RFC822 valid address.
=head1 AUTHOR
Paul Warren, pdw@ex-parrot.com
=head1 COPYRIGHT and LICENSE
This program is copyright 2001-2002 by Paul Warren.
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions: The above copyright notice and this
permission notice shall be included in all copies or substantial portions of
the Software.
Thailand_for_YO
09-13-2003, 01:17 PM
96turnerri
can you please put some of the script/coding ...
ty [/B]
If you meaning the email verification script, here is some of the coding:
package Mail::RFC822::Address;
use strict;
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK);
require Exporter;
@ISA = qw(Exporter);
# Items to export into callers namespace by default. Note: do not export
# names by default without a very good reason. Use EXPORT_OK instead.
# Do not simply export all your public functions/methods/constants.
@EXPORT_OK = qw( valid validlist );
@EXPORT = qw(
);
$VERSION = '0.3';
my $rfc822re;
# Preloaded methods go here.
my $lwsp = "(?:(?:\\r\\n)?[ \\t])";
..........................................................
=head1 DESCRIPTION
Mail::RFC822::Address validates email addresses against the grammar described
in RFC 822 using regular expressions. How to validate a user supplied email
address is a FAQ (see perlfaq9): the only sure way to see if a supplied email
address is genuine is to send an email to it and see if the user receives it.
The one useful check that can be performed on an address is to check that the
email address is syntactically valid. That is what this module does.
This module is functionally equivalent to RFC::RFC822::Address, but uses
regular expressions rather than the Parse::RecDescent parser. This means that
startup time is greatly reduced making it suitable for use in transient scripts
such as CGI scripts.
=head2 valid ( address )
Returns true or false to indicate if address is an RFC822 valid address.
=head1 AUTHOR
Paul Warren, pdw@ex-parrot.com
=head1 COPYRIGHT and LICENSE
This program is copyright 2001-2002 by Paul Warren.
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions: The above copyright notice and this
permission notice shall be included in all copies or substantial portions of
the Software.