Missing Vendr SendSmtpEmail
# help-with-umbraco
c
Trying to implement a pipline extension in Vendr to attach a file to an email based on this example in the Vendr docs : https://vendr.net/docs/core/3.0.0/key-concepts/pipelines/#example-pipeline-task However, my code has a red SendSmtpEmail function I can't find. Does anyone know what I need to do to be able to turn it green and use it? Resharper can't find it either 😦 Thanks.
s
Hint: the new #1127946593786675331 has an
umbraco-commerce
tag (I'm done moving all kinds of channels around now, sorry for moving your cheese). Here's some documentation, maybe it helps? https://docs.umbraco.com/umbraco-commerce/key-concepts/pipelines
c
This is a different problem to the "Can't send Order Confirmation emails" that's now in the cheese bin. Luckily still accessible via link. And I did look for an appropriate tag but there wasn't one 30 mins ago. I looked because I knew you'd be on it. 😉
Hi Seb, that's the Umbracoised version of the Vendr documentation I was using. So it's exactly the same unfortunately. There doesn't seem to be on obvious dependency for SendSmtpEmail.
Turns out (from Our forum) that the SendSmtpEmail in the docs should actually be Umbraco.Commerce.Core.Pipelines.Email.Tasks.SendEmailTask (or in my case: Vendr.Core.Pipelines.Email.Tasks.SendEmailTask). So a Docs edit needed there I think. 😉
Also now that it compiles, it doesn't get hit when debugging. I read the comment as "the code below registers the task with the build pipeline". But maybe it doesn't. Is there something else needed to register it?