Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CFMAIL/CFOUTPUT

Status
Not open for further replies.

DugzDMan

Programmer
Oct 19, 2000
157
US
I'm getting an error when trying to send an email using CFMAIL.

All I'm trying to do is submit an email as a record of some form submissions. I'm not pulling the info from a query, so I don't need to group anything. Am I just missing something obvious here??

If I have the cfmail tag enclosed in cfoutput tags, it throws this error:
A CFMAIL tag is nested inside a CFOUTPUT tag that does not have a GROUP= attribute. This is not allowed. Nesting these tags implies that you want to use grouped processing. However, the top-level tag must specify a top-level group using a GROUP= attribute.

The error occurred while processing an element with a general identifier of (CFMAIL), occupying document position (46:1) to (49:14).

If I don't have it inside cfoutput tags, I get this error:
The attribute value is an invalid expression: An error has occurred while processing the expression:

DBXL Change Request - #Form.Layout#

Error near line 1, column 2.

--------------------------------------------------------------------------------

Error resolving parameter FORM.LAYOUT

The specified form field cannot be found. This problem is very likely due to the fact that you have misspelled the form field name.

If I have the CFMail tage enclosing the CFOutput tag, I get this error:
A CFOUTPUT tag is nested inside a CFMAIL tag with no GROUP= or QUERY= attributes . This is not allowed. Nesting these tags implies that you want to use grouped processing. However, the outer tag does not specify a query to loop over or a group to process.

The error occurred while processing an element with a general identifier of (CFOUTPUT), occupying document position (49:1) to (49:10).

Thanks for the help!
Doug
 
Could you post the surrounding code of "DBXL Change Request - #Form.Layout#"? The expression looks fishy.
 
That code is in the CFMail tag:

<CFMAIL FROM=&quot;#Form.UserID#@domain.com&quot;
TO=&quot;#Form.UserID#@domain.com;#DBXLNotify#&quot;
SUBJECT=&quot;DBXL Change Request - #Form.Layout#&quot;
TYPE=&quot;HTML&quot;>
 
It sounds like FORM.LAYOUT is not getting passed to the CFMail tag, so it doesn't know what to do. Have you checked your form to verify that the name (LAYOUT) is spelled correctly and there is a value being passed to the CFMail tag?

 
Doh! I've been looking at this thing so long lately, I'm getting blurry eyed! That was the problem. (Should have been FORM.LayoutName)

Thanks much Ecobb!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top