Copied to clipboard

Flag this post as spam?

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


  • Nidhi 32 posts 154 karma points
    Apr 26, 2023 @ 00:38
    Nidhi
    0

    Vendr OrderConfirmation Email not working

    Hi

    I am using Vendr 3.0.11, Vendr Checkout 3.1.0, Umbraco 11. When i complete the payment step , I am not receiving any OrderConfirmation email. Although i can see in my backend umbraco that the process has been completed without any error.

    I am getting all other emails except for this one.

    Is anyone else getting the same problem.

    Thanks

  • Matt Brailsford 4124 posts 22220 karma points MVP 9x c-trib
    Apr 26, 2023 @ 06:42
    Matt Brailsford
    0

    Have you checked your spam folder? And have you tried using a dev SMTP service like Papercut to check the email is actually sending? It would be good to know if it’s not sending or if it’s just not being received

  • Nidhi 32 posts 154 karma points
    Apr 26, 2023 @ 20:31
    Nidhi
    0

    Yeah , I have checked my spam folder, unfortunately nothing in there. I have also checked mail server logs for when i was testing the Order. I can see the orders in umbraco. Its just the Order Confirmation email that its not being sent. Its even hitting the Order Confirmation template when debugging. Are there any required settings I could be missing?

  • Matt Brailsford 4124 posts 22220 karma points MVP 9x c-trib
    Apr 27, 2023 @ 07:42
    Matt Brailsford
    0

    Hmm, if you are seeing other emails being sent then I would imagine it should be all setup correctly, but the key thing is making sure your SMTP details in place in the web.config/app settings file.

    If you debug into it, are you seeing any errors? Or is is there anything in the Umbraco log?

  • Lukaz 44 posts 203 karma points
    May 01, 2023 @ 14:56
    Lukaz
    0

    Hi, I have the same problem after upgrading to Vendr v3.0.11. The error I'm getting from the log viewer is down below. I'm using Papercut for testing purposes, and if I send an order confirmation email from the order editor in the backoffice for a specific language, it works fine, but after finalizing the order at checkout does not send any mail and goes into error. Before the upgrade, everything worked fine. I made the upgrade from Vendr v3.0.4

    It's worth mentioning I use templates for order confirmation in two languages and there is a dictionary key for template view pointing for each language as well for the order subject line and Send to Customer option is checked.

    In the database table vendrOrder, there is accurate langugaeIsoCode supplied. It looks to me like it can't find/read the proper dictionary key for the subject line and/or template view based on the current iso language code.

    I tried to remove the template view dictionary key and left the subject line dictionary key and the result was that a confirmation email is received but in the email subject line there is its dictionary name instead of the proper subject line value based on langugaeIsoCode so it's definitely something regarding reading those dictionary keys and their values.

    System.AggregateException: AsyncHelper.RunSync method threw an exception. (Value cannot be empty. (Parameter 'body'))
     ---> System.ArgumentException: Value cannot be empty. (Parameter 'body')
       at Umbraco.Cms.Core.Models.Email.EmailMessage.ArgumentIsNotNullOrEmpty(String arg, String argName)
       at Umbraco.Cms.Core.Models.Email.EmailMessage..ctor(String from, String[] to, String[] cc, String[] bcc, String[] replyTo, String subject, String body, Boolean isBodyHtml, IEnumerable`1 attachments)
       at Vendr.Extensions.MailMessageExtensions.ToEmailMessage(MailMessage message)
       at Vendr.Umbraco.Mail.UmbracoEmailSender.SendAsync(MailMessage message)
       at Vendr.Common.Helpers.AsyncHelper.<>c__DisplayClass1_0.<<RunSync>b__0>d.MoveNext()
       --- End of inner exception stack trace ---
       at Vendr.Infrastructure.Resiliency.PollyExecutionStrategyBase.Execute[TResult](Func`1 operation, Func`1 verifySucceeded)
       at Vendr.Core.Services.EmailTemplateService.SendEmail[TModel](EmailTemplateReadOnly emailTemplate, TModel model, String toEmailAddress, String languageIsoCode)
       at Vendr.Core.Services.EmailTemplateService.SendEmail(EmailTemplateReadOnly emailTemplate, OrderReadOnly order)
       at Vendr.Core.Events.Notification.Handlers.Order.SendFinalizedOrderEmail.Handle(OrderFinalizedNotification evt)
    
  • Matt Brailsford 4124 posts 22220 karma points MVP 9x c-trib
    May 01, 2023 @ 16:32
    Matt Brailsford
    0

    Ok, so the dictionary keys are something new I can look into. Would be good if Nidhi could confirm if are also using dictionary keys in their email template settings?

  • Nidhi 32 posts 154 karma points
    May 01, 2023 @ 20:55
    Nidhi
    0

    Hi,

    Yes, we are also using dictionary keys in email template settings.

  • Matt Brailsford 4124 posts 22220 karma points MVP 9x c-trib
    May 03, 2023 @ 07:56
    Matt Brailsford
    0

    Ok, so I'm trying to replicate this as simply as I can so I'm seeing if I trigger the "Send Email" dialog in the back office for an email template with a dictionary value, does it fail to send, but it seems to be sending ok locally.

    Can you confirm in your installs if the "Send Email" button in the back office does actually work for you? Or does it also fail to send?

  • Matt Brailsford 4124 posts 22220 karma points MVP 9x c-trib
    May 03, 2023 @ 08:06
    Matt Brailsford
    0

    In fact, I'm struggling to replicate this at all.

    Using the demo store, I've setup a second language (Danish) and configured my email template to have a dictionary value for the view path, with both entries pointing to the same view.

    I then create an order, and force it's language to Danish. I then add a product to the order and checkout. With all this, I still receive an order confirmation email.

    Are either of you able to replicate this at all on the demo store?

  • Lukaz 44 posts 203 karma points
    May 03, 2023 @ 08:49
    Lukaz
    0

    Hi Matt,

    thank you for the quick response, as I mentioned in my previous post, sending emails by triggering the "Send Email" dialog in the back office works fine.

    However, doesn't send a confirmation email during the checkout process (using Vendr Checkout) after the customer pays for his order, and then when a confirmation order email needs to be sent to a customer fails with an error.

    Didn't test it on the demo store yet, but I'll post the results here ASAP.

    Can you Nidhi add some insight on that?

  • Nidhi 32 posts 154 karma points
    May 04, 2023 @ 03:19
    Nidhi
    0

    For me in my project its neither sending email via the button in the back office, nor it sends email via the checkout process. I cannot see any error related to that as it just spins and next do nothing for the back button.

    Also I tried demo store and added another language English (New Zealand) and tried the Send email button in back office and it threw

    enter image description here

    Not sure if I am missing any particular setting or what.

  • Matt Brailsford 4124 posts 22220 karma points MVP 9x c-trib
    May 04, 2023 @ 05:16
    Matt Brailsford
    0

    That error would suggest it is failing to connect to the SMTP server so I would check the SMTP details in app settings.

  • Lukaz 44 posts 203 karma points
    May 04, 2023 @ 08:38
    Lukaz
    0

    I have tested everything with the Demo Store and can confirm that everything works for my settings.

    Maybe there was something wrong with the database after the upgrade, so I guess I would need to start with a fresh install and empty database to get this working on a current project.

    Thanks, Matt for your effort, after I set up a fresh project I'll post here if everything works as well.

  • Nidhi 32 posts 154 karma points
    May 05, 2023 @ 03:27
    Nidhi
    1

    Hi Matt

    I can confirm that order conformation emails are working for me both for demo store and my project.

    Thanks a lot for your effort.

  • Matt Brailsford 4124 posts 22220 karma points MVP 9x c-trib
    May 05, 2023 @ 05:18
    Matt Brailsford
    0

    Excellent. Glad we got it working for you 👍🏻

Please Sign in or register to post replies

Write your reply to:

Draft