CFMAIL in which version of CF? My experience has been that CFMAIL in CF5 accepts pretty much anything. It's the SMTP relay that accepts only certain formats, and I've seen differences among SMTP servers. I've also seen differences between the accepted formats for the FROM and TO addresses. So a universal UDF to do this would be unlikely - it would have to be customized to each environment.
I've never had a need to validate the address in this manner, though. There's no good reason to permit people to enter addresses like this. It's much easer for both them and yourself if they enter their name and email address separately. You validate the email address, the name (non blank?) and then you store them seperately and use CF to format the TO and FROM as you're sending messsages. ----- Original Message ----- From: "Jon Austin" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Wednesday, November 24, 2004 8:21 PM Subject: Strict email validation > Does anyone know of a function to validate email addresses that > matches the accepted address formats for CFMAIL? > > I.e. will return true for: > > [EMAIL PROTECTED] > > <[EMAIL PROTECTED]> > > Rob Smith <[EMAIL PROTECTED]> > > "Rob Smith" <[EMAIL PROTECTED]> > > [EMAIL PROTECTED] (Rob Smith) > > The one from cflib.org will only validate the first example. > > Kind Regards, > > Jon Austin ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net http://www.cfhosting.net Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185377 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

