Well, first of all, if email isn't defined, your CFMAIL tag will blow up. Also, your from attribute is messy. You need to put some quotes around all that, or it'll never work. The angle brackets are probably causing a problem as well. The tag thinks you're ending the tag at the ">" at the end of your email address. Kevin Langevin Web Guy in Charge UsWebGuys 954-327-5780 [EMAIL PROTECTED] > -----Original Message----- > From: Dan Sullivan [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, September 04, 2001 12:53 PM > To: CF-Talk > Subject: <CFMAIL> inserting e-mail addresses, CFIF isdefined ... > > > I'm trying to pass e-mail addresses into my cfmail tag if a variable is > defined. > Here's a dummy sample, that I can't get to work. > > > <CFSET email = "fun"> > > <CFmail to="<CFIF ISDEFINED ("email")>[EMAIL PROTECTED]</CFIF>" from= > sullivan <mailto:[EMAIL PROTECTED]> @hittite.com subject="Test" > > > test > > </CFMAIL> > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

