Use the javax.mail construct for internet address. Wrap that in a
try-catch and there's your validation.
-Dov

  _____  

From: Tim Jackson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 28, 2004 4:05 PM
To: CF-Talk
Subject: Re:CFMX 'bug'? Easy to crash CFMAIL.


Raymond,

Can you recommend the best way of checking the email first?...
CFMX does not provide the same function that CFMAIL uses to validate.  I
have ran into many instances where tags from the CF Exchange pass emails
(ISEmailResult, etc), and CFMAIL MX crashes.

I agree with those of you who call this a BUG.  

1. CFMAIL worked on previous versions regardless of fubared
emails.  Go ahead an allow CFMAIL tag checking for apps written after MX
6.1, but default it to not if it is not specified.  It is not backward
compatible.

2. It does "Crash" ColdFusion.  It does not literally stop the
service, but it invokes error handling, which, to the fat-fingered end
user, is a crash.

3. CFMail DEMANDS a properly formatted email.  But CFML does not
provide the same function to test the same way it does.

-Tim

Attribute validation error for tag CFMAIL.

>Incorrect. You simply need to check the email address first.
This is best
>done one time - so do it before inserting it into the DB.
>
>
  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to