Hi Guys,

Seem to be having an issue with CFMAIL

when given the following scenario

<cfmail cc="#oStringUtils.variableReplace(sString=
arguments.form_action_config.cc)#"
bcc="#oStringUtils.variableReplace(sString=arguments.form_action_config.bcc)#"
from="#oStringUtils.variableReplace(sString=arguments.form_action_config.from)#"
to="#oStringUtils.variableReplace(sString=arguments.form_action_config.to)#"
subject="#oStringUtils.variableReplace(sString=arguments.form_action_config.subject)#">

The mail content here

</cfmail>

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

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

Alex

-- 
Alex Skinner
Managing Director
Pixl8 Interactive

Tel: +448452600726
Email: [email protected]
Web: pixl8.co.uk

-- 
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