I think it's because you are just appending the pipeline task, which means it'll get added on the end of the pipeline, but the last task in the default email pipeline is a "send email" task, so your task will be added and thus running after this one, and so is running too late.
You'll probably need to register it like this instead.
Just in case you have more fools developing, it may be worth updating the docs here. While they are accurate, I hadn't appreciated that SendSmtpEmailTask was a pipeline step itself and therefore the order was pertinent.
Email pipeline issues
Related to Github issue #287
I can't get the pipeline workaround to work.
Also
The relevant lines are hit in the debugger, but the mail message appears unedited. Is this my implementation or a bug?
Hi David,
I think it's because you are just appending the pipeline task, which means it'll get added on the end of the pipeline, but the last task in the default email pipeline is a "send email" task, so your task will be added and thus running after this one, and so is running too late.
You'll probably need to register it like this instead.
Matt
Exactly that. Many thanks.
Just in case you have more fools developing, it may be worth updating the docs here. While they are accurate, I hadn't appreciated that
SendSmtpEmailTask
was a pipeline step itself and therefore the order was pertinent.is working on a reply...