Copied to clipboard

Flag this post as spam?

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


  • Nik 1593 posts 7151 karma points MVP 6x c-trib
    Aug 28, 2020 @ 14:19
    Nik
    0

    Emails - Place holders

    Hi Matt :-)

    I was wondering, do e-mail templates support placeholders? More specifically, the Subject field. I would love to be able to include the order number in the subject of the e-mail if possible.

    Also, on a similar thought process, I noticed someone asked about sending multiple e-mails and you said about using events. Would it be possible to do similar with pipelines or does it have to be events?

    Cheers,

    Nik

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Aug 28, 2020 @ 14:42
    Matt Brailsford
    100

    Hey Nik,

    This forum post should answer your first question https://our.umbraco.com/packages/website-utilities/vendr/vendr-support/103146-set-subject-line-of-email-template-programmatically

    And yes, you can send an email within a pipeline too, though we only have a couple of pipelines atm, one for order calculation and one for email sending in general, oh and one for store init.

    What exactly would you require a pipeline for over events?

  • Nik 1593 posts 7151 karma points MVP 6x c-trib
    Aug 28, 2020 @ 15:01
    Nik
    0

    Hey Matt

    It was just curiosity the pipeline question to be fair. We have a need to send an e-mail to the purchaser and the "owner of the website" when someone completes an order, so wondered if a pipeline would be the right way to do it over events.

    But, event's works fine :-)

    Cheers

    Nik

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Aug 28, 2020 @ 15:13
    Matt Brailsford
    0

    No worries.

    To be fair, events are semi-pipeline like as they are executed in order. You can register a handler by using the RegisterHandlerBefore and RegisterHandlerAfter methods to control when they are run in relation to another event.

    Matt

Please Sign in or register to post replies

Write your reply to:

Draft