yeah i thought about that, i'm going to try encapsulating in quotes to see
if CF does ok with that.

----- Original Message -----
From: "Jon Hall" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, January 03, 2001 9:35 AM
Subject: Re: CFMAIL addresses & commas


> Your two <> delimiters are the key. Just find the position of both of
those
> characters and use only what is between the <> chars. Like so..
>
> <cfset emailAddress = "Bromby, Dylan <[EMAIL PROTECTED]>">
> <cfset startPosition =  find("<" , emailAddress)>
> <cfset endPosition =  find(">" , emailAddress)>
> <cfset lengthofEmail = endPosition - StartPosition>
>
> <cfset realEmailAddress = mid(emailAddress, startPosition, lengthofEmail)>
>
> I didn't test this but it should definately work. This also could be done
> inline in your to="" parameter of your cfmail with refind() and regular
> expressions if your feeling rather elegant :-)
>
> jon
> ----- Original Message -----
> From: "Dylan Bromby" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Wednesday, January 03, 2001 10:20 AM
> Subject: CFMAIL addresses & commas
>
>
> > Running CF 4.0.1 Ent on WinNT4SP5.
> >
> > Addresses such as: Bromby, Dylan <[EMAIL PROTECTED]> are being sent to
> > UNDELVR because of the comma. CF thinks Bromby is an address and the
rest
> is
> > a second address when in fact they are one.
> >
> > Anyone got a suggestion for a workaround?
> >
> > --Dylan
> >
> >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to