> I'm currently working to add an address book importer
> (PLAXO) to a site. The address book importer returns
> the emails in the input box as follows: "FNAME LNAME"
> <[EMAIL PROTECTED]>, "FNAME LNAME" <[EMAIL PROTECTED]>,
> "FNAME LNAME" <[EMAIL PROTECTED]>,

I can think of a couple of ways to attack this... and I may be doing
this with Plaxo myself soon... 

One way you could try is by using listtoarray with < and > as the list
delimiters ... 

<cfset EmailArray = ListToArray(EmailList,"<>") />
<cfloop index="i" from="1" to="#ArrayLen(EmailArray)#">
<cfif isValid('email',EmailArray[i])>
  ... do something with the address ... 
</cfif>
</cfloop>

That should work if you're only concerned about the email addresses and
not any of the name information. If you need to do something with the
name info, you may need to get fancier. :) 

-- 
s. isaac dealey  ^  new epoch
 isn't it time for a change? 
     ph: 503.236.3691

http://onTap.riaforge.org/blog



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:296509
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to