Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged

Conversation

johnhenley
Copy link
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
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
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
Contributor

valadas commented Nov 19, 2024

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@bdukes bdukes added this to the 9.13.7 milestone Nov 19, 2024
Copy link
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
3 checks passed
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