مرتبك بشأن قوالب البريد الإلكتروني

حاولتُ تحديد قالب البريد الإلكتروني المستخدم عندما ينشئ مستخدم موضوعًا جديدًا في فئة معينة.
لدي مستخدمون يتابعون الفئة، ويتلقون إشعارات حول أول منشور فقط.

ظننتُ أنني وجدت القالب الصحيح، لكنني اكتشفتُ أن المستخدمين يتلقون رسائل بريد إلكتروني من قوالب مختلفة عندما أنشئ موضوعًا جديدًا في فئة خاصة.

تلقى هذان المستخدمان رسالتين مختلفتين:
أحدهما مدير وفريق، وقد ضبط الفئة على “متابعة أول منشور”،
والآخر من الفريق وقد ضبط الفئة على “متابعة”.

أنا الآن مرتبك. كيف يمكنني تحديد القالب المستخدم بناءً على كل إعداد؟ أم أن هناك عوامل أخرى؟

بما أن هدفي هو تحديد قالب خاص لفئة واحدة فقط:
هل توجد إمكانية لتعيين قالب ثابت لفئة معينة؟

وعلى سبيل المثال: هل توجد قائمة بالأسماء المتغيرة المتاحة وقابلة للاستخدام في نص الرسالة؟ لقد فاجأني أن المتغير %topic_title لا يعمل عند إدراجه في نص الرسالة.

Search for specific, unique words used in the email via the admin, customize, text interface.

That would sure be a way if the bodies were different … but all in question seem to go

%{header_instructions}

%{message}

%{context}

%{respond_instructions}

only the subjects differ.

I will have to go through all of them in my test environment and write something special in each one then, don’t I?

If the subjects differ, searching for the subject should work?

Those %{strings} are all replacement elements.

Just to get it straight:

There is no listing which template is used when. One has to resolve it upon the E-Mail the users have already gotten, and that may differ upon the watch mode. But there are no further implications s.a. trust level, e-mail level etc.

Also, there is no listing of the replacement elements (variables) which can be used in which parts of the E-Mail templates.

Right?
I’ll start searching then. :slightly_smiling_face:

sooo…after quite a while of searching, found that there is no e-mail template for user watching first post, but there are text templates: user_notifications.user_watching_first_post.subject_template & user_notifications.user_watching_first_post.text_body_template.

What I don’t understand: If e-mail templates aren’t necessary for notification e-mails, why are there some and some others not?

I don’t get the whole templating thing. There are body templates that use variables like %{topic_title} and %{topic_excerpt} etc., but if I copy them into eg. user_notifications.user_posted.text_body_template, it says they can’t be used.

Are these templates alterable at all? Which variables can be used? Where is the list of usable variables?

I want to alter the e-mail notifications, preferably for one category, so that they don’t send the whole post in the body any more, but would like to give at least the topic. How can I achieve this?

إعجاب واحد (1)