Problems with dynamic email using Email[GH]

GreyHead 19 Jul, 2011
Hi WFederation,

I just ran a quick test here using your code with the Email [GH] action and the emails are being sent OK from my test site.

Not sure what else to look at . . .

Bob
GreyHead 19 Jul, 2011
Hi WFederation,

Much debugging later I've cracked it. In the Custom Code action there is a 'Mode' setting. This was set to 'View' mode; if you switch it back to the 'Controller' mode then the email is sent OK.

View mode is only run after the rest of the processing is complete and so the variables are not present for the Email action to use.

Bob

PS The hidden inputs in the Custom Code action create some errors and son't do anything so they should probably be removed.

PPS I'm not sure why the standard Email action doesn't have the same problems . . .
GreyHead 20 Jul, 2011
Hi Wayne,

I think we've seen that error message before. When I have a moment I'll see if I can work out why it gets triggered.

Bob
This topic is locked and no more replies can be posted.