Remove environment name prefix from email subjects
Build and Push Docker Images Staging / build (push) Successful in 1m26s

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-08 21:47:21 +03:00
parent c2082d6729
commit 71d5ac8e06
@@ -58,9 +58,7 @@ public sealed class SmtpEmailDispatcher
if (!string.IsNullOrWhiteSpace(req.ReplyTo))
msg.ReplyTo.Add(MailboxAddress.Parse(req.ReplyTo));
msg.Subject = string.Equals(_environmentName, "Production", StringComparison.OrdinalIgnoreCase)
? req.Subject.Trim()
: $"[{_environmentName}] {req.Subject}".Trim();
msg.Subject = req.Subject.Trim();
var shellStart = _templates.Get("email.html-shell.start", "*");
var shellEnd = _templates.Get("email.html-shell.end", "*");