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?
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?
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.
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.
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
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?
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
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
andRegisterHandlerAfter
methods to control when they are run in relation to another event.Matt
is working on a reply...