Hi Claude,

I use CFX_validEmail.  Sample code below.  It is reliable, but because of
the time outs it can take a long time on large tables.

Some stuff in the code related to how I was using it, of course, but I think
it will help rather than hinder so I've left it intact.

Hope this helps,
Jenny

<CFX_ValidEmail QUERY="QUERY_NAME "
COLUMN="EMAIL_TO_CHECK "
IDCOLUMN="ID_COLUMN "
NAME="results"
MXTIMEOUT="5"
SMTPTIMEOUT="5"
FROMADDRESS="s...@email.com "
MXLOOKUP
USEMXCACHE
USESMTPCHK
CLEARMXCACHE>

<cfdump var="#results#">

<cfoutput query="results">
<cfquery datasource="#application.dsn#">
update tbl_members
set emailVerify = '#results.smtpchk#', emailVerifyMessage =
'#results.SMTPRESPONSE#'
<cfif results.smtpchk is "yes">
, emailverified = '#results.address#', emailVerifyDate = getdate()
</cfif>
where memberID = #results.idcolumn#
</cfquery>
</cfoutput>


-----Original Message-----
From: Claude Schnéegans <schneeg...@internetique.com>
[mailto:=?ISO-8859-1?Q?Claude_Schn=E9egans <schneegans@interneti=71?=
=?ISO-8859-1?Q?ue.com=3E?=] 
Sent: 10 October 2013 19:26
To: cf-talk
Subject: Check an email domain


Hi,
I just lost about 2 hours digging in my mail server logs to find why a user
did not get his message sent by CF to finally find out the guy entered a
typo in his domain name...

So, I know that verifying that an email address exists is utopic, but
verifying that at least some mail server exists for a certain domain name
would have saved me 2 hours this morning!

Is someone aware of some tool that will check for a mail server from CF?

Thanks.




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356909
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to