Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Dan Evans 629 posts 1016 karma points
    Apr 12, 2016 @ 05:59
    Dan Evans
    1

    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

  • Wouter van der Beek 20 posts 282 karma points
    Apr 12, 2016 @ 08:19
    Wouter van der Beek
    0

    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

  • Dan Evans 629 posts 1016 karma points
    Apr 12, 2016 @ 16:39
    Dan Evans
    0

    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

  • [email protected] 408 posts 2137 karma points MVP 8x c-trib
    Apr 13, 2016 @ 06:20
    jeffrey@umarketingsuite.com
    0

    Hi Dan,

    thanks for your suggestion! We will look into that in a new release!

    Thanks,

    Jeffrey

Please Sign in or register to post replies

Write your reply to:

Draft