|
|
|
| <?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 />";
}
?> | | |
|
| email validator check checker email e-mail email address Categories : PHP, Email, Regexps | | | 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 | | | making links from text Categories : PHP, Regexps, Email | | | Clever Email Validation Function - E-Mail validation function with an eregi expression and socket connection. Categories : Email, PHP, Regexps | | | PHP Script to find url links in a page Categories : PHP, URLs, Regexps, Arrays | | | Tag content retrieval from websites with preg_match Categories : PHP, Regexps, Arrays, HTML and PHP | | | email new items in db Categories : PHP, Email, Databases, MySQL, Beginner Guides | | | PHP based Contact email form with multiple recipients, text file based, supports departments. Categories : PHP, Email, Beginner Guides, Filesystem | | | This script is a contact form between users of a
website (kinda like the PM function on the forums)
Categories : PHP, Databases, MySQL, Regexps | | | Simple way to replace a variable value in a .conf (.ini) file using a
webbrowser - the first stage of a complete universal configuration editor Categories : PHP, Regexps, Code Editors, Filesystem | | | ereg -- Regular expression match Categories : PHP, PHP Functions, Regexps | | | Class for sending mail with MIME attachments in multipart format using external sendmail, mimencode and zip Categories : Email, Network, PHP, PHP Classes | | | Gets the browser and OS from the $_SERVER['http_user_agent'] variable in PHP Categories : PHP, HTTP, 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 | | | Encoding data using PGP via PHP's proc_* functions Categories : Cryptography, Security, Email, PHP, PGP | |
| | | | 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 ! ?
| |
|
|
|