I am using two CFMAIL tags in a IF statement and get the following error:

I have done this before. What gives???


I have the code written like this:

<cfif formMethod EQ "send">

<cfmail>.....</cfmail> This tag sends the registration to an email address
<cfmail>.....</cfmail>  this tag sends an email to the registrant

<cfelse>

Show registration form



Context validation error for tag cfif.  
The start tag must have a matching end tag. An explicit end tag can be provided 
by adding </cfif>. If the body of the tag is empty you can use the shortcut 
<cfif .../>.
The CFML compiler was processing:

The body of a CFMAIL tag beginning on line 55, column 18.
 
  
The error occurred in D:\INETPUB\wifenetwork\conferencecalls.cfm: line 40
 
38 : 
39 : <cfinclude template="includes/conferenceTop.cfm"> 
40 : <cfif #formMethod# EQ "send"> 
41 : <CFMAIL TO="[EMAIL PROTECTED]"
42 :            FROM="#Email#"
 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:15:1088
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to