Try:
<cfset namepart=left(emailaddr,find("@",emailaddr)-1)>
<cfset domainpart=right(emailaddr,len(emailaddr)-find("@",emailaddr))>
Regards,
Howie Hamlin
--
inFusion Project Manager; On-Line Data Solutions, Inc. (631)737-4668
===================================================
Please vote for iMS in the Most Innovative category here:
*** http://www.sys-con.com/ColdFusion/readerschoice2000/ ***
===================================================
Check out inFusion Mail Server - the world's most configurable email server
*** inFusion Authenticator for IIS is now released! (download from
CoolFusion.com) ***
http://www.teletrends.com and http://www.coolfusion.com
Software and utilities for ColdFusion, iHTML, Website, NTMail
Latest versions available from our web site (inFusion Authenticator version
2.0 for WebSite and NTMail is now released)
----- Original Message -----
From: Tiffany - Tech Support <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 18, 2000 5:31 PM
Subject: Breaking strings apart
> What I am looking to do is seperate a username from a domain in an email
> address.
>
> So you have [EMAIL PROTECTED] What function or tag or what could I use
> to have it detect everything before the @ symbol and call that the
username,
> and everything after the @ to set as the domain?
>
> Thanks!
> _____________________________
> Tiffany
> Technical Support
> the spa! online services
> [EMAIL PROTECTED] (413)539-9818
>
> --------------------------------------------------------------------------
----
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.