www.webdeveloper.com
Results 1 to 4 of 4

Thread: Email Verification

  1. #1
    Join Date
    Sep 2003
    Location
    Bangkok, Thailand
    Posts
    5

    Email Verification

    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).

  2. #2
    Join Date
    Sep 2003
    Location
    Portsmouth, UK Occupation: Web Developer
    Posts
    2,602
    can you please put some of the script/coding on this thread so that i can look at what you mean exactly ty

  3. #3
    Join Date
    Sep 2003
    Location
    Bangkok, Thailand
    Posts
    5

    Email Verification

    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:
    Code:
    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.

  4. #4
    Join Date
    Sep 2003
    Location
    Bangkok, Thailand
    Posts
    5

    Email Verification

    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:
    Code:
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles