I have a php block in the action editor of an email action. I'm trying to create an article from the email_content values.
How can I load the email_content into a variable in php?
Hi stwgroup,
I don't think that you can. I believe that the 'email content' is created in the Email action and not saved. You can use the Debugger to check that.
Otherwise all the data used in the 'email content' is available to you and you can use that in HTML+PHP to create your article. Check the ShortCodes CheatSheet to see the formats to use.
Bob
HI stwgroup,
Looking at the Shortcodes Cheatsheet the whole email data should be available as {var.email_74} but I'm not clear how you would extract the body only from that :-( Maybe {var:email_74.body} ???
Bob
THanks Bob,
What would that look like in PHP since I cannot use shortcodes in PHP.
Or, how could I configure a variable action to assign {var:email_74.body} to a varialbe for use in PHP?
Hi sywgroup,
CFv6 used $this->data e.g. $this->data[.email_74']['body'] - I guess that CFv7 might well be the same???
Bob