Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Sandman Newsgroups: comp.lang.php Subject: Re: What this means "(\w|-)+@\w"? Date: Wed, 03 Aug 2011 00:21:07 +0200 Lines: 27 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: individual.net DRQIkhmXB8Nf1fH5Op1UvQT2y6WZOAmoiU2KsTliRcDLCFyj4= X-Orig-Path: mr Cancel-Lock: sha1:wmmJt/Qsv7OPLitt9UbnT3uQa0g= User-Agent: MT-NewsWatcher/3.5.2 (Intel Mac OS X) X-Face: $@,Vfa$,)%=Qa7L]y)&oZj_\EiHc}}Af0Bei"4a_%)"c6TQ+P/:53>;PNGuWUmkqyeN-qM65foJ[;T_(k;>]&G\T4Lhm:2 ujye2_,iUJFE;NZn>y;.|-hl7g~bIOF1qG\o, "Álvaro G. Vicario" wrote: > El 02/08/2011 10:06, Sandman escribió/wrote: > > What's wrong with the PHP built in email validator? > > > > > if (filter_var($email, FILTER_VALIDATE_EMAIL)){ > > # Do fancy stuff, such as sending fancy email! > > } > > ?> > > For instance: > > var_dump(filter_var('webmaster@álvaro.es', FILTER_VALIDATE_EMAIL)); > var_dump(filter_var('webmaster@asxn--lvaro-wqa.es', FILTER_VALIDATE_EMAIL)); > > bool(false) > bool(false) Is SMTP supposed to support IDN? And even if it's supposed to, what SMTP servers correctly parse IDN? I mean, percentage-wise? -- Sandman[.net]