On Fri, Nov 18, 2011 at 8:49 AM, Alex Skinner <[email protected]> wrote:

> The issue is that if either CC or BCC or indeed TO field are blank you get
> the following error or a variant ?
>
> CFMAIL Serious Error: java.lang.Exception: invalid CC field
>
>
Are you sure this is new behavior? I've certainly run into issues in the
past (probably on Adobe CF 7 when I would have been working on a big mail
app) where if the to, for example, is invalid or blank it would error out.


> You obviously need to be able to pass in an empty string and the field to
> be ignored as there is no way to do it otherwise putting <CFIF blocks>
> around all the combinations possible
>

Or alternatively you could use an attribute collection. You'd still have to
potentially have some basic conditional logic checking for empty fields,
but then at least you'd only be adding thing to the attribute collection if
necessary vs. having a mess of conditionals.

-- 
Matthew Woodward
[email protected]
http://blog.mattwoodward.com
identi.ca / Twitter: @mpwoodward

Please do not send me proprietary file formats such as Word, PowerPoint,
etc. as attachments.
http://www.gnu.org/philosophy/no-word-attachments.html

-- 
online documentation: http://openbd.org/manual/
   google+ hints/tips: https://plus.google.com/115990347459711259462
     http://groups.google.com/group/openbd?hl=en

Reply via email to