If the email is the form "alias" <emailaddress>, you can try using a regular expression such as
<cfset emailaddress= REReplaceNoCase(pop.from,"[^<]*<([^>]*)>","\1","ONE")>
I have a problem accessing a variable in cold fusion because the variable name contains spaces. I want to output the list of tables in a MySQL database in the following way:
<CFQUERY name="getTableNames" datasource="dbname">
show tables
</CFquery>
<CFoutput...
I know the latest version of CFServer (ie. version 4.5.1 with service pack 2) doesn't mind email addresses of that form "Name" <emailaddress> .
This changed somewhere between version 4.0 and the current version.
a simple way of getting around this is to use regular expressions...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.