Osama
7월 25, 2024, 8:35오전
9
Nordize:
v3.2.2를 사용하고 있습니다. “User Posted” 이메일 템플릿 본문을 다음과 같이만 수정했습니다.
%{username}님이 "[%{topic_title}](%{url})"에 게시했습니다.
--
하지만 발송된 이메일에는 여전히 게시글 본문 전체 등이 포함된 원래 템플릿이 사용되었습니다.
이것은 새 주제가 생성될 때(첫 번째 게시글)의 상황입니다.
“User Posted” 템플릿은 사용자가 관찰 중인 주제에 새 게시글이 등록되었을 때 이메일을 보내는 데 사용됩니다. user_watching_first_post와 user_watching_category_or_tag는 새 주제에 대해 이메일을 보내는 데 사용됩니다. 로컬 인스턴스에서 해당 템플릿을 수정하여 테스트해 봤고, 변경 사항이 발송되는 이메일에 반영되는 것을 확인했습니다:
/admin/email/sent에서 템플릿에 적용한 변경 사항이 반영되지 않는 이메일 유형이 무엇인지 확인해 주시겠습니까?
네, 아주 좋은 지적입니다. /admin/customize/email_templates의 이메일 템플릿 목록은 하드코딩되어 있으며 수년 동안 업데이트되지 않아 추가된 많은 새 이메일이 누락되어 있습니다. 모든 새 템플릿을 추가하기 위한 PR을 올렸습니다:
main ← fix/add-missing-templates-to-email-templates-editor
merged 09:27PM - 29 Jul 24 UTC
We have a dedicated admin page (`/admin/customize/email_templates`) that lets ad… mins customize all emails that Discourse sends to users. The way this page works is that it lists all translations strings that are used for emails, and the list of translation strings is currently hardcoded and hasn't been updated in years. We've had a number of new emails that Discourse sends, so we should add those templates to the list to let admins easily customize those templates.
Meta topic: https://meta.discourse.org/t/3-2-x-still-ignores-some-custom-email-templates/308203.