Skip to content

Commit

Permalink
truncate
Browse files Browse the repository at this point in the history
  • Loading branch information
dlidstrom committed Jan 5, 2024
1 parent f699566 commit 7d1707f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Snittlistan.Web/Commands/HandleMailCommandHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ await CompositionRoot.Databases.Snittlistan.KeyValueProperties
email.From,
email.To,
email.Bcc,
email.Subject.Substring(0, Math.Min(100, email.Subject.Length)),
email.Subject,
state));
Logger.InfoFormat("sending email {@email}", email);
await CompositionRoot.EmailService.SendAsync(email);
Expand Down
2 changes: 1 addition & 1 deletion Snittlistan.Web/Models/EmailState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ protected EmailState(
From = from;
To = to;
Bcc = bcc;
Subject = subject;
Subject = subject.Substring(0, Math.Min(100, subject.Length));
}

public static string OwnerEmail { get; } = ConfigurationManager.AppSettings["OwnerEmail"];
Expand Down

0 comments on commit 7d1707f

Please sign in to comment.