WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDESPHP CLASSESCODE SEARCHARTICLES SEARCHPHP FORUMSPHP MANUALPHP FUNCTIONS LISTWEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Join us on FaceBook
Submit a code Example / Snippet Submit Your Code
Poker Tournaments Poker Tournaments
Poker Guide for Developers Poker Guide for Developers
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Resources
Web Development Content
Internet Security Software
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
פרייסז - הכח לקנות עובר לידיים שלך
Texas Holdem Poker Evangelists

Go Back Add a Comment Send this example to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES ADD CODE EXAMPLES PRINT
Title : validateEmail 2.0 - upgraded version of the old validateEmail function used to validate email addresses via SMTP and regex.
Categories : Email, Regexps, PHP Update Picture
Clay Loveless
Date : Mar 14th 2002
Grade : 3 of 5 (graded 1 times)
Viewed : 7215
File : validateEmail.php
Images : No Images for this code example.
Search : More code by Clay Loveless
Action : Grade This Code Example
Tools : My Examples List

Submit your own code examples  Submit your own code examples 
 

<?php
   
// get the address from wherever you get it ... form input, etc.
   
$email = "info@killersoft.com";

   
// try a few extra times if we're concerned about fsockopen problems
   
$attempt = 0;
   
$max_attempts = 3;
   
$response_code = "";
    while (
$response_code == "" || strstr( $response_code, "fsockopen error" )) {
       
$validate_results = validateEmail( $email );
       
$response_code = $validate_results[1];
        if(
$attempt == $max_attempts) break;
       
$attempt++;
    }

   
// display results
   
echo "successful check during attempt #$attempt<br />";
    if (
$validate_results[0] ) {
        echo
"$email is all good. (Or at least looks that way.)<br />";
    } else {
        echo
"D'oh! $email is no good!<br />";
        echo
"$validate_results[1]<br />";
    }
?>



Clever Email Validation Function - E-Mail validation function with an eregi expression and socket connection.
Categories : Email, PHP, Regexps
EAvalidator - This class can be used to validate an e-mail address by checking its domain.
Categories : PHP, PHP Classes, Email, Regexps
making links from text
Categories : PHP, Regexps, Email
validateEmailFormat 1.0 - translation of Jeffrey E.F. Friedl's powerful "Email Regex Program" from O'Reilly's _Mastering Regular Expressions_. The last word on email validation with regex.
Categories : Email, Regexps, PHP
email validator check checker email e-mail email address
Categories : PHP, Email, Regexps
Grab links from a page
Categories : PHP, Regexps, HTTP
Banknote Validation - A PHP class that provides several methods to quickly validate banknote serial numbers of the following currencies: AUD, CAD, CHF, CNY, EUR, GBP, JPY, USD.
Categories : PHP, PHP Classes, Data Validation, Regexps
Calculate Body Mass Index
Categories : PHP, Algorithms, Regexps
A web-based php3 IMAP email client supporting address books, attachements (downloading and sending), LDAP searching, and much much more.
Categories : Email, PHP, LDAP
An array of functions to use in checking user input to HTML forms : text, firstName, middleNameOrInit, lastName, email, web, digits, decimal, hex, genNum, USD, BPS, Euro, USphone, USzip
Categories : PHP, Data Validation, Regexps
Formit 1.0. PHP Very easy to implement form-template(s) to email script. Works with multiple templates and HTML-format email. Only one file!
Categories : PHP, Email, HTML
An email validation script that actually checks against the recipient's mail server.
Categories : Email, Complete Programs, PHP, Network, Debugging
Sample WML Mailer
Categories : PHP, WAP, WML, Email
AITSH Mail
Categories : Complete Programs, Email, PHP
Ping a Server and run a command to fix it if it is down
Categories : PHP, Errors and Logging, Regexps
 Steve Beresford wrote :941
I can`t get this to work, or its predeccessor ?
it says my email (sales@kitzkatz.com) is invalid which it can`t be ! ?