When using standard Umbraco workflow emails it's possible to dynamically include a page value in an email, using the bracket syntax, e.g. [#pageFieldName]
Is this possible in Perplex Mail? I can see how to use a slightly different bracket syntax to add in form fields, e.g. [#formFieldName]
I want to start using your module because of the "Reply-to" functionality which Umbraco does not offer however I need to source this "Reply-to" address from an Umbraco page field and not a form field.
Currently there is no way to programatically modify the list of tags that are used when the PerplexMail Workflow sends an e-mail. The only tags you can use are the ones that are generated from the Form's input fields.
The only workaround to this, if you want to keep using Umbraco Forms, is to use a hidden field with the label "ReplyTo". You can then set the hidden field with the desired e-mailadres. You can then edit the PerplexMail e-mail and set the Reply To e-mailadress to the value [#ReplyTo#] (mind the closing #]). The obvious downside to this is that the e-mailadres will be visible in the client browser and could get tampered with.
The other two alternatives are:
1) Modify the PerplexMail Workflow source (I believe it's available on Github) and compile a modified library that does what you want or
2) Don't use Umbraco Forms, and only use PerplexMail instead. You can then customize the tags exactly as you see fit. However this will obviously require you to create some custom code to parse the form which the Umbraco Forms Workflow normally does for you, but allowing more control over the output.
Using Umbraco Page Fields in a Workflow email
When using standard Umbraco workflow emails it's possible to dynamically include a page value in an email, using the bracket syntax, e.g. [#pageFieldName]
Is this possible in Perplex Mail? I can see how to use a slightly different bracket syntax to add in form fields, e.g. [#formFieldName]
I want to start using your module because of the "Reply-to" functionality which Umbraco does not offer however I need to source this "Reply-to" address from an Umbraco page field and not a form field.
Awesome package though otherwise!
Thanks
Dan
Hello Dan,
Currently there is no way to programatically modify the list of tags that are used when the PerplexMail Workflow sends an e-mail. The only tags you can use are the ones that are generated from the Form's input fields.
The only workaround to this, if you want to keep using Umbraco Forms, is to use a hidden field with the label "ReplyTo". You can then set the hidden field with the desired e-mailadres. You can then edit the PerplexMail e-mail and set the Reply To e-mailadress to the value [#ReplyTo#] (mind the closing #]). The obvious downside to this is that the e-mailadres will be visible in the client browser and could get tampered with.
The other two alternatives are:
1) Modify the PerplexMail Workflow source (I believe it's available on Github) and compile a modified library that does what you want or
2) Don't use Umbraco Forms, and only use PerplexMail instead. You can then customize the tags exactly as you see fit. However this will obviously require you to create some custom code to parse the form which the Umbraco Forms Workflow normally does for you, but allowing more control over the output.
I hope this helps!
~ Wouter
Thanks, the hidden field would work as a workaround.
Can I suggest though that you standardise your {[]} notation with Umbraco core and integrate page fields?
So use {formfield} [#pageField] etc
Thanks
Dan
Hi Dan,
thanks for your suggestion! We will look into that in a new release!
Thanks,
Jeffrey
is working on a reply...