<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Validate e-mail addresses using PHP</title>
	<atom:link href="http://www.soaptray.com/blog/2008/04/validate-email-addresses-using-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.soaptray.com/blog/2008/04/validate-email-addresses-using-php/</link>
	<description>A fresh look at Design, SEO, CSS &#38; Programming</description>
	<pubDate>Tue, 16 Mar 2010 14:35:19 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: Rodger</title>
		<link>http://www.soaptray.com/blog/2008/04/validate-email-addresses-using-php/#comment-9242</link>
		<dc:creator>Rodger</dc:creator>
		<pubDate>Sat, 19 Sep 2009 17:47:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.soaptray.com/?p=9#comment-9242</guid>
		<description>Thanks, after searching a lot I found this to be the best and easy to understand email validation.

Its exactly what i was looking for !!

Thanks again!</description>
		<content:encoded><![CDATA[<p>Thanks, after searching a lot I found this to be the best and easy to understand email validation.</p>
<p>Its exactly what i was looking for !!</p>
<p>Thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: You are now listed on FAQPAL</title>
		<link>http://www.soaptray.com/blog/2008/04/validate-email-addresses-using-php/#comment-3409</link>
		<dc:creator>You are now listed on FAQPAL</dc:creator>
		<pubDate>Wed, 04 Feb 2009 01:30:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.soaptray.com/?p=9#comment-3409</guid>
		<description>&lt;strong&gt;Validate e-mail addresses using PHP...&lt;/strong&gt;

These functions will help narrow down the verification process significantly!...</description>
		<content:encoded><![CDATA[<p><strong>Validate e-mail addresses using PHP&#8230;</strong></p>
<p>These functions will help narrow down the verification process significantly!&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Regan Johnson</title>
		<link>http://www.soaptray.com/blog/2008/04/validate-email-addresses-using-php/#comment-614</link>
		<dc:creator>Regan Johnson</dc:creator>
		<pubDate>Sun, 24 Aug 2008 18:16:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.soaptray.com/?p=9#comment-614</guid>
		<description>&lt;blockquote&gt;missfitbit said: Ummm...noob question: 

Where exactly do I put this? In the php the form posts to? In a separate php as ...&lt;/blockquote&gt;

The easiest way to include this into your application would be to copy and paste the above code into your script, and then call the functions as needed to validate e-mail addresses (usually on a POST). If you need to use these functions on multiple pages, you can include the functions in a global function file.

Hope this helps!</description>
		<content:encoded><![CDATA[<blockquote><p>missfitbit said: Ummm&#8230;noob question: </p>
<p>Where exactly do I put this? In the php the form posts to? In a separate php as &#8230;</p></blockquote>
<p>The easiest way to include this into your application would be to copy and paste the above code into your script, and then call the functions as needed to validate e-mail addresses (usually on a POST). If you need to use these functions on multiple pages, you can include the functions in a global function file.</p>
<p>Hope this helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott F</title>
		<link>http://www.soaptray.com/blog/2008/04/validate-email-addresses-using-php/#comment-608</link>
		<dc:creator>Scott F</dc:creator>
		<pubDate>Sun, 24 Aug 2008 06:29:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.soaptray.com/?p=9#comment-608</guid>
		<description>Thanks a lot for helping us fight spam!!!!!</description>
		<content:encoded><![CDATA[<p>Thanks a lot for helping us fight spam!!!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: missfitbit</title>
		<link>http://www.soaptray.com/blog/2008/04/validate-email-addresses-using-php/#comment-602</link>
		<dc:creator>missfitbit</dc:creator>
		<pubDate>Fri, 22 Aug 2008 22:55:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.soaptray.com/?p=9#comment-602</guid>
		<description>Ummm...noob question: 

Where exactly do I put this? In the php the form posts to? In a separate php as a class? derrrr. Sorry. I'm sure that's a really dumb question and shows just how in over my head I am... 

Thanks anyway!</description>
		<content:encoded><![CDATA[<p>Ummm&#8230;noob question: </p>
<p>Where exactly do I put this? In the php the form posts to? In a separate php as a class? derrrr. Sorry. I&#8217;m sure that&#8217;s a really dumb question and shows just how in over my head I am&#8230; </p>
<p>Thanks anyway!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eneza</title>
		<link>http://www.soaptray.com/blog/2008/04/validate-email-addresses-using-php/#comment-470</link>
		<dc:creator>Eneza</dc:creator>
		<pubDate>Tue, 05 Aug 2008 03:48:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.soaptray.com/?p=9#comment-470</guid>
		<description>Great! Nice Tutorial you have there my lad..... thanks for the INFO</description>
		<content:encoded><![CDATA[<p>Great! Nice Tutorial you have there my lad&#8230;.. thanks for the INFO</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff</title>
		<link>http://www.soaptray.com/blog/2008/04/validate-email-addresses-using-php/#comment-205</link>
		<dc:creator>Jeff</dc:creator>
		<pubDate>Tue, 08 Jul 2008 00:09:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.soaptray.com/?p=9#comment-205</guid>
		<description>I decided to make our check exclude "impossible" domains, by expanding the regular expression to check for valid top level domains (at least, those that were valid in March, when I last checked). I also made it a variable in an include, so I only have to change it once for any programs that need to use it (it isn't always used in a function call):

$__validate_email = "/^[-\".'_%+?=a-z0-9]+@[-.a-z0-9]+\." . "(ac&#124;ad&#124;ae&#124;aero&#124;af&#124;ag&#124;ai&#124;al&#124;am&#124;an&#124;ao&#124;aq&#124;ar&#124;arpa&#124;as&#124;asia&#124;at&#124;au&#124;aw&#124;ax&#124;az&#124;ba&#124;bb&#124;bd&#124;be&#124;bf&#124;bg&#124;bh&#124;bi&#124;biz&#124;bj&#124;bm&#124;bn&#124;bo&#124;br&#124;bs&#124;bt&#124;bv&#124;bw&#124;by&#124;bz&#124;ca&#124;cat&#124;cc&#124;cd&#124;cf&#124;cg&#124;ch&#124;ci&#124;ck&#124;cl&#124;cm&#124;cn&#124;co&#124;com&#124;coop&#124;cr&#124;cu&#124;cv&#124;cx&#124;cy&#124;cz&#124;de&#124;dj&#124;dk&#124;dm&#124;do&#124;dz&#124;ec&#124;edu&#124;ee&#124;eg&#124;er&#124;es&#124;et&#124;eu&#124;fi&#124;fj&#124;fk&#124;fm&#124;fo&#124;fr&#124;ga&#124;gb&#124;gd&#124;ge&#124;gf&#124;gg&#124;gh&#124;gi&#124;gl&#124;gm&#124;gn&#124;gov&#124;gp&#124;gq&#124;gr&#124;gs&#124;gt&#124;gu&#124;gw&#124;gy&#124;hk&#124;hm&#124;hn&#124;hr&#124;ht&#124;hu&#124;id&#124;ie&#124;il&#124;im&#124;in&#124;info&#124;int&#124;io&#124;iq&#124;ir&#124;is&#124;it&#124;je&#124;jm&#124;jo&#124;jobs&#124;jp&#124;ke&#124;kg&#124;kh&#124;ki&#124;km&#124;kn&#124;kp&#124;kr&#124;kw&#124;ky&#124;kz&#124;la&#124;lb&#124;lc&#124;li&#124;lk&#124;lr&#124;ls&#124;lt&#124;lu&#124;lv&#124;ly&#124;ma&#124;mc&#124;md&#124;me&#124;mg&#124;mh&#124;mil&#124;mk&#124;ml&#124;mm&#124;mn&#124;mo&#124;mobi&#124;mp&#124;mq&#124;mr&#124;ms&#124;mt&#124;mu&#124;museum&#124;mv&#124;mw&#124;mx&#124;my&#124;mz&#124;na&#124;name&#124;nc&#124;ne&#124;net&#124;nf&#124;ng&#124;ni&#124;nl&#124;no&#124;np&#124;nr&#124;nu&#124;nz&#124;om&#124;org&#124;pa&#124;pe&#124;pf&#124;pg&#124;ph&#124;pk&#124;pl&#124;pm&#124;pn&#124;pr&#124;pro&#124;ps&#124;pt&#124;pw&#124;py&#124;qa&#124;re&#124;ro&#124;rs&#124;ru&#124;rw&#124;sa&#124;sb&#124;sc&#124;sd&#124;se&#124;sg&#124;sh&#124;si&#124;sj&#124;sk&#124;sl&#124;sm&#124;sn&#124;so&#124;sr&#124;st&#124;su&#124;sv&#124;sy&#124;sz&#124;tc&#124;td&#124;tel&#124;tf&#124;tg&#124;th&#124;tj&#124;tk&#124;tl&#124;tm&#124;tn&#124;to&#124;tp&#124;tr&#124;travel&#124;tt&#124;tv&#124;tw&#124;tz&#124;ua&#124;ug&#124;uk&#124;um&#124;us&#124;uy&#124;uz&#124;va&#124;vc&#124;ve&#124;vg&#124;vi&#124;vn&#124;vu&#124;wf&#124;ws&#124;xn&#124;ye&#124;yt&#124;yu&#124;za&#124;zm&#124;zw)/i";

I elected not to include the experimental Chinese domains, since they supposedly aren't valid anymore, and we don't do much business with people who would have been doing such experimentation, anyway.</description>
		<content:encoded><![CDATA[<p>I decided to make our check exclude &#8220;impossible&#8221; domains, by expanding the regular expression to check for valid top level domains (at least, those that were valid in March, when I last checked). I also made it a variable in an include, so I only have to change it once for any programs that need to use it (it isn&#8217;t always used in a function call):</p>
<p>$__validate_email = &#8220;/^[-\&#8221;.&#8217;_%+?=a-z0-9]+@[-.a-z0-9]+\.&#8221; . &#8220;(ac|ad|ae|aero|af|ag|ai|al|am|an|ao|aq|ar|arpa|as|asia|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|biz|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cat|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|com|coop|cr|cu|cv|cx|cy|cz|de|dj|dk|dm|do|dz|ec|edu|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gov|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|info|int|io|iq|ir|is|it|je|jm|jo|jobs|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mil|mk|ml|mm|mn|mo|mobi|mp|mq|mr|ms|mt|mu|museum|mv|mw|mx|my|mz|na|name|nc|ne|net|nf|ng|ni|nl|no|np|nr|nu|nz|om|org|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|pro|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sy|sz|tc|td|tel|tf|tg|th|tj|tk|tl|tm|tn|to|tp|tr|travel|tt|tv|tw|tz|ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|xn|ye|yt|yu|za|zm|zw)/i&#8221;;</p>
<p>I elected not to include the experimental Chinese domains, since they supposedly aren&#8217;t valid anymore, and we don&#8217;t do much business with people who would have been doing such experimentation, anyway.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Regan Johnson</title>
		<link>http://www.soaptray.com/blog/2008/04/validate-email-addresses-using-php/#comment-147</link>
		<dc:creator>Regan Johnson</dc:creator>
		<pubDate>Wed, 18 Jun 2008 21:19:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.soaptray.com/?p=9#comment-147</guid>
		<description>&lt;blockquote&gt;Ryan said: Sorry, I saw that you did mention that right after I posted. My apologies. &lt;/blockquote&gt;

Not a problem Ryan. Thank you for keeping an eye out though. There is a workaround for Windows machines involving fsock. I will post a follow up to include this. Take care.</description>
		<content:encoded><![CDATA[<blockquote><p>Ryan said: Sorry, I saw that you did mention that right after I posted. My apologies. </p></blockquote>
<p>Not a problem Ryan. Thank you for keeping an eye out though. There is a workaround for Windows machines involving fsock. I will post a follow up to include this. Take care.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://www.soaptray.com/blog/2008/04/validate-email-addresses-using-php/#comment-146</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Wed, 18 Jun 2008 19:10:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.soaptray.com/?p=9#comment-146</guid>
		<description>Sorry, I saw that you did mention that right after I posted. My apologies.</description>
		<content:encoded><![CDATA[<p>Sorry, I saw that you did mention that right after I posted. My apologies.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://www.soaptray.com/blog/2008/04/validate-email-addresses-using-php/#comment-145</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Wed, 18 Jun 2008 19:09:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.soaptray.com/?p=9#comment-145</guid>
		<description>It would help to mention (unless I missed it) that checkdnsrr() is *not* implemented on Windows. Thankfully php.net was the first thing I checked after my script returned an error.</description>
		<content:encoded><![CDATA[<p>It would help to mention (unless I missed it) that checkdnsrr() is *not* implemented on Windows. Thankfully php.net was the first thing I checked after my script returned an error.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
