cfmail group attribute throws error

后端 未结 2 694
不知归路
不知归路 2021-01-28 03:38

I have a query which returns multiple results with just data in one column as different for a particular report number. I want to group the results for one report number and sen

2条回答
  •  忘掉有多难
    2021-01-28 03:59

    I believe your actual problem is that you're using pound signs in the group attribute.

    group="#investigation_id#" should be group="investigation_id"

    --Edit--

    This below answer is moot as the OP was misleading.

    I think this is because you do not need cfoutput tags inside the cfmail tag. It's odd that it causes a mail error, though.

    anyway...

    I would try using cfsavecontent then output the variable in the cfmail.

    
        
            #action_who_email#
    Report ID: #report_id#
    Report Number: #report_number#
    investigation id: #investigation_id#
    Action Who :#action_who#
    Action What: #action_what#
    Action When: #action_when#
    Action type:#action_type#
    Action Complete Date: #action_complete_date#


    #mailBody#

提交回复
热议问题