var_dump(imap_rfc822_parse_adrlist('"! # $ % & * + - / = ? ^ _ ` { | } ~"', '')); This looks like a valid localhost email address to me... What's wrong with it? :-v You may want to check that "host" is non-empty, if you do not expect any localhost users, and fail on that condition, however. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php