Hi
Have anyone had success with the WithSendEmailPipeline?
I need to add extra data just before it sends out the order email.
I looked at Pipelines | Umbraco Commerce
I added the custom class as the first code section in the docs (could not use return Ok() but I changed that to what override comes with.)
then I added
.WithSendEmailPipeline().InsertBefore<RaiseSendingEventTask, PipelineTaskEmailSend>();
But my custom class is not getting hit.
Any ideas ?
I used
AddUmbracoCommerce(config => {
config.WithSendEmailPipeline().InsertBefore<RaiseSendingEventTask, PipelineTaskEmailSend>();
})
but its not registering anything there.
So I went with :
.WithUmbracoCommerceBuilder()
.WithSendEmailPipeline()
.InsertBefore<RaiseSendingEventTask, PipelineTaskEmailSend>();
that did the trick, and now its firing as expected.
Odd’s are when you called AddUmbracoCommerce you probably did it after AddComposers, but adding Umbraco Commerce needs to occur before the composers as we have a fallback composer that registers a default config if one hasn’t already been configured.
Yeah it was add after, will set it before thx.