-
Notifications
You must be signed in to change notification settings - Fork 52
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
Merge tags broken? #133
Comments
Thank you!! This is your first issue on this repo |
Hey @StynV, have you updated anything on your system? Like Strapi Version or anything else? |
@creazy231 that's the weird thing, we have and noticed the bug after. I even have hardcoded text not appearing in the mail. I started a new database file & stil had the issue. I really don't know what's going wrong all of a sudden. We do everything according to the documentation. |
@StynV I guess you also ran For debugging emails I can recommend https://mailtrap.io/ |
@creazy231 I did yes Is there any way I can contact you to setup a call? I tried the form on your site which doesn't work 😅 |
good to know that form doesn't work anymore :D |
Hi @creazy231 , I'm chipping in with a few technical details / extra observations:
See the example attached: Second image: They aren't coming trough and are showing just like the others Also: the first field that isn't working is always shown as blank, from then on they display as their mergetags (like {{= USER.textArea }} ) Our client is getting really nervous at this point, so it would be nice if someone could take a look at this issue. If there is anything we can provide to speed up the process, let me know. Thanks in advance! |
Anyone else who can help here? |
@ZanKorosak so what you're saying is that the way of defining Merge tags in plugins.js must be changed?
? |
This seems to have fixed the issue @creazy231 is it possible to give some kind of notion in the README.MD ? |
It is a breaking change. I Saw that the README was updated after @creazy231 made some changes to the repo some time ago. Check the mustache docs here to see how to use vars, loops etc in the email template from now on: https://mustache.github.io/mustache.5.html |
flagged the PR as a breaking change ( #128 ) but for some reason it wasn't merged into a major release |
Bug report
I think the merge tags are broken?
We've been using the Email Designer for months now to send form submissions to our employees.
These mails get the data in a /mailing backend call.
We insert the fields as requested:
USER: { firstname: body.firstname, lastname: body.lastname, formEmail: body.email, phoneNumber: body.phoneNumber, textArea: body.textArea, textField1: body.textField1, textField2: body.textField2, number: body.number, formId: body.formId, title: body.title },
which shows up in the Email Designer & then we pick the required values.
This has worked very good for months, since today we've been getting this in mails:
form email: first name: {{ USER.firstname }} last name: {{ USER.lastname }} form id: {{= USER.formId }} number: {{= USER.number }} phone number: {{= USER.phoneNumber }} text area: {{= USER.textArea }} text field 1: {{= USER.textField1 }} text field 2: {{= USER.textField2 }} title: {{= USER.title }}
The brackets are suddenly not being replaced by the values anymore?
The text was updated successfully, but these errors were encountered: