-
Notifications
You must be signed in to change notification settings - Fork 2
send emails stop working after migration for umbraco 15 #705
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @marvingbh , the latest version is now By the way can you describe the upgrade process from 13 to 15? Like, when you're at version 13.x.x, did you upgrade to 14 or jumped straight to 15.2.2? |
@umbracotrd I've tried with 15.3.4, same problem, about the migration we migrate from 13 to 15, skipping 14. |
any update on this? |
About the About the emails stop working, can you to go any order and try send out test emails using other email templates? I want to know if all emails stop working or just the order confirmation one. If you see any errors in the log relates to email sending, please share in this post. |
On the order webpage, emails are sent correctly when I select the appropriate language, regardless of the template. However, when an order is confirmed, the confirmation email is not automatically sent. I suspect this is because the system is using default values instead of the selected language settings, which prevents the email from going out. |
Can you access the database? If you can, please run this query The language info's supposed to be saved for each order and the email service will use that language to send out the emails. |
Yeah, that’s a problem. |
when creating/updating an order using the storefront api, are you passing If you are, please check the value you're passing to If you're not then you can start passing the |
I'm not passing language in the body, I just migrate from v13 where was working, and now is not working anymore. all those fields are optional by the documentation. |
@marvingbh they are optional, but the default behaviour is to fall back to the @umbracotrd's suggestion to pass the language is to prevent this default behaviour from running and using an explicit language code. We of course will look to fix this issue, but this was just a suggestion to get things working in the meantime. |
got it. will pass the language and let you know if it works. |
same error passing the language once creating the order, nothing changed. |
@mattbrailsford @umbracotrd in the order the language is now correct, but still not sending email the error msg is the same: |
Did you modify the DB directly? If so, the order might still be in a cache. If you get the Order service from DI container you can get it to clear the cache for an order. Or a simpler option would be to just restart the app if you can. |
no, I updated the order payload when creating the order. is a new order, so no cached. |
Well from the exception it's clearly getting the language from the Accepts-Language header for some reason so may mean it's ignoring the orders language setting 🤔 Is that error from when you send an email from the backoffice? or when going via checkout? |
Ok, so that is interesting as checking the send email controller that handles sending the email, that doesn't fallback to the |
any workaround or needs a new version to fix? |
Are you positive the email you sent in the back office is for an order with a valid languageIsoCode set? The error suggests not as like I mentioned yesterday, the email sending routine doesn't fall back to the |
Yes, the email I sent in the back office is for an order with a valid languageIsoCode set. In backoffice, it works correctly if I select the correct language in the dropdown. However, if I don’t change the dropdown and attempt to send the email as it opens, I encounter the same error. This behavior is identical to what happens when an order is completed—the confirmation email fails to send. I’ve also created a new order with the language explicitly set, but it still fails. |
Yea, I'm just wondering where that |
@marvingbh I've just pushed Can you give it a shot? Remember to backup your database before installing the new version though. |
@umbracotrd it works, thank you very much! |
@umbracotrd when the new version will be released? |
We should be able to look at getting it out this week 👍 |
|
Uh oh!
There was an error while loading. Please reload this page.
Which component is this issue related to?
Umbraco Commerce (Core)
Which Umbraco Commerce version are you using? (Please write the exact version, example: 10.1.0)
15.2.2
Bug summary
After migration to Umbraco 15, the order confirmation email stop working. I've notice a weird thing when using the UI to try send the e-mail, the default language is setup to ucModals_sendEmailPlaceholder, is that some variable that I need to set?
I'm guessing this is the cause of the issue but I don't know how to fix it. can you help me?
found this on the logs:
Specifics
No response
Steps to reproduce
Migrate a website from 13 to 15
Try to buy something
email does not work
Expected result / actual result
No response
Dependencies
No response
This item has been added to our backlog AB#52853
The text was updated successfully, but these errors were encountered: