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.
1 Like
Yeah it was add after, will set it before thx.
1 Like
system
(system)
Closed
June 2, 2025, 6:24pm
5
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.