Best I can think of is add a breakpoint inside VendrCheckoutOrderConfirmationEmail at line 29 and see what Model.StoreId is set to, and also what checkoutPages.First().GetStore()?.Id is set to as it would appear there is a miss match.
I've been trying to figure it out, but it's been without success. So, I write my own email template inside the project and put it in the Template View field, as shown in the image below. And it's works now.
sending email - [Vendr Checkout 2.0]
Hi there,
I'm getting an error on sending email to customer through checkout page. See image below.
Is there anything or any config that I'm missing?
Hi NPina,
Line 29 of the order confirmation email is looking for a checkout page that is linked to a store, but it appears to not be finding one.
Do you have a store picker defined with the alias
store
somewhere in the checkout pages ancestory?Hi Matt.
Yes, I do. Below is image with Shop, which is parent of Checkout, and on it.
The image below illustrates what Shop's document type looks like
Hmmm,
Then it should be working.
Best I can think of is add a breakpoint inside
VendrCheckoutOrderConfirmationEmail
at line 29 and see whatModel.StoreId
is set to, and also whatcheckoutPages.First().GetStore()?.Id
is set to as it would appear there is a miss match.Hi Matt,
See here what I found by doing debug
Hmmm, maybe try rebuilding your lucene index / internal content cache as it looks like it's not finding the vender checkout nodes.
Also, just to check, you didn't change the alias of any of the generated doc types did you?
No, I didn't change anything that was generated.
Ok, I will try clean and rebuild project again to see if its works.
But before that I just want to know if there is any configuration to setup for sending email, like add some property on appsettings. Is there?
You should just need to make sure the SMTP settings are defined in your appsettings file. See the docs here regarding global settings and where you define the SMTP settings within it https://our.umbraco.com/Documentation/Reference/Configuration/GlobalSettings/
Hi Matt
It's allowed to use another protocol for sending email or is only SMTP.
Hi Matt
Sorry for the delay.
I've been trying to figure it out, but it's been without success. So, I write my own email template inside the project and put it in the Template View field, as shown in the image below. And it's works now.
Thanks for the support.
Glad you got it working 👍
is working on a reply...