verify your email addresses above the cfmail statement as described.
if not valid email then branch your code to notify somebody that
Record X has a sucky address that needs fixing (I compile a complete
list of all failures and only send the list once its finished).
After that, surround your cfmai
om: Rick Root
To: CF-Talk
Sent: Tue May 01 18:59:33 2007
Subject: Re: Check for valid email before CFMAIL
Shoot I forgot..
CFMX 7 introduced isValid() which allows you to validate the format of
an email address.
google isValid +sit
Shoot I forgot..
CFMX 7 introduced isValid() which allows you to validate the format of
an email address.
google isValid +site:livedocs.adobe.com
~|
ColdFusion MX7 by AdobeĀ®
Dyncamically transform webcontent into Adobe PDF with
google, isEmail +site:cflib.org
You won't be able to use the query attribute on cfmail if you have
badly formatted email addresses in your database though... unless you
loop through the query and "correct" or "remove" the rows with invalid
email addresses first using the UDF you find on cflib.
Ri
> I've got a database that didn't use form validation and some email
> addresses are
> not valid. So before I use the cfmail tag to send these out how can I
> check to make
> sure it's a valid email address?
It depends what you mean by "valid". You can check for valid syntax on the
fly using
You can check to see if the email is syntactically correct, but short of
opening a socket to the mail server used by that email, there's no way of
checking that it's a "real" email address.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 01, 20
6 matches
Mail list logo