Skip to content

ENH: Use message subject when sending instant subscription messages#6199

Merged
valadas merged 3 commits intodnnsoftware:developfrom
johnhenley:issues/notification-subject-6176
Nov 30, 2024
Merged

ENH: Use message subject when sending instant subscription messages#6199
valadas merged 3 commits intodnnsoftware:developfrom
johnhenley:issues/notification-subject-6176

Conversation

@johnhenley
Copy link
Copy Markdown
Contributor

Summary

When sending instant/individual email notifications, uses message subject rather than generic "New message from {PortalName}".
Closes #6176

var emailBodyItemContent = GetEmailItemContent(portalSettings, messageRecipient, emailBodyItemTemplate);
var subject = string.Format(emailSubjectTemplate, portalSettings.PortalName);
var emailBodyItemContent = GetEmailItemContent(portalSettings, messageRecipient, emailBodyItemTemplate);
var subject = InternalMessagingController.Instance.GetMessage(message.MessageID).Subject;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this have a check for a possible missing subject?

Copy link
Copy Markdown
Contributor

@donker donker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@valadas
Copy link
Copy Markdown
Contributor

valadas commented Nov 19, 2024

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@bdukes bdukes added this to the 9.13.7 milestone Nov 19, 2024
Copy link
Copy Markdown
Contributor

@valadas valadas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@valadas valadas merged commit ce45a3b into dnnsoftware:develop Nov 30, 2024
@johnhenley johnhenley deleted the issues/notification-subject-6176 branch January 24, 2025 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

[Enhancement]: Use message Subject as subject of DNN Messaging Notification Emails

5 participants