Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • NPina 32 posts 183 karma points
    Oct 28, 2022 @ 19:27
    NPina
    0

    sending email - [Vendr Checkout 2.0]

    Hi there,

    I'm getting an error on sending email to customer through checkout page. See image below.

    enter image description here

    Is there anything or any config that I'm missing?

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Oct 31, 2022 @ 08:45
    Matt Brailsford
    0

    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?

  • NPina 32 posts 183 karma points
    Oct 31, 2022 @ 09:38
    NPina
    0

    Hi Matt.

    Yes, I do. Below is image with Shop, which is parent of Checkout, and on it.

    enter image description here

    The image below illustrates what Shop's document type looks like

    enter image description here

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Oct 31, 2022 @ 10:16
    Matt Brailsford
    0

    Hmmm,

    Then it should be working.

    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.

  • NPina 32 posts 183 karma points
    Oct 31, 2022 @ 12:20
    NPina
    0

    Hi Matt,

    See here what I found by doing debug enter image description here

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Oct 31, 2022 @ 13:31
    Matt Brailsford
    0

    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?

  • NPina 32 posts 183 karma points
    Oct 31, 2022 @ 13:47
    NPina
    0

    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?

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Oct 31, 2022 @ 13:51
    Matt Brailsford
    100

    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/

  • NPina 32 posts 183 karma points
    Nov 17, 2022 @ 11:50
    NPina
    0

    Hi Matt

    It's allowed to use another protocol for sending email or is only SMTP.

  • NPina 32 posts 183 karma points
    Nov 04, 2022 @ 13:26
    NPina
    0

    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.

    enter image description here

    Thanks for the support.

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Nov 04, 2022 @ 13:57
    Matt Brailsford
    1

    Glad you got it working 👍

Please Sign in or register to post replies

Write your reply to:

Draft