Remove environment name prefix from email subjects
Build and Push Docker Images Staging / build (push) Successful in 1m26s
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:
@@ -58,9 +58,7 @@ public sealed class SmtpEmailDispatcher
|
|||||||
if (!string.IsNullOrWhiteSpace(req.ReplyTo))
|
if (!string.IsNullOrWhiteSpace(req.ReplyTo))
|
||||||
msg.ReplyTo.Add(MailboxAddress.Parse(req.ReplyTo));
|
msg.ReplyTo.Add(MailboxAddress.Parse(req.ReplyTo));
|
||||||
|
|
||||||
msg.Subject = string.Equals(_environmentName, "Production", StringComparison.OrdinalIgnoreCase)
|
msg.Subject = req.Subject.Trim();
|
||||||
? req.Subject.Trim()
|
|
||||||
: $"[{_environmentName}] {req.Subject}".Trim();
|
|
||||||
|
|
||||||
var shellStart = _templates.Get("email.html-shell.start", "*");
|
var shellStart = _templates.Get("email.html-shell.start", "*");
|
||||||
var shellEnd = _templates.Get("email.html-shell.end", "*");
|
var shellEnd = _templates.Get("email.html-shell.end", "*");
|
||||||
|
|||||||
Reference in New Issue
Block a user