plonemailerploneformgen

How do I concatenate 2 Ploneformgen form variables to use in CC Recipient of a Mailer adapter


I have to form fields. If I put either one of request/form/participant_1_email or
request/form/participant_2_email

into the CC Expression of a Ploneformgen Mailer Adapter, they work fine. I want to use both at the same time.

I have looked in the Zope Book, Googled multiple sites, including this one, but can't a solution for the syntax to do this. Any help is greatly appreciated.


Solution

  • It says Your expression should evaluate as a sequence of strings. Try this:

    python:[request.form['participant_1_email'],request.form['participant_2_email']]