Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

Edit email notification for direct message

Open droup opened this issue 9 years ago • 1 comments

Rocket.Chat Version: latest

Hi everyone, how can I edit the email when I've got private message. "[Site_name] You have been direct messaged by " and change the button "Go to message" ? Thank you

droup avatar Feb 21 '17 06:02 droup

Sorry about the delay =/

You can change Offline_Mention_All_Email template... but I'm afraid you cant make a distinction between public and private channels =/... if you really need that, please open an issue asking for a special field to private and public rooms

[]s

Administration > Email > Subject > Mention All Email Subject

export function sendEmail({ message, user, subscription, room, emailAddress, hasMentionToUser }) {
	const username = settings.get('UI_Use_Real_Name') ? message.u.name : message.u.username;
	let subjectKey = 'Offline_Mention_All_Email';

	if (room.t === 'd') {
		subjectKey = 'Offline_DM_Email';
	} else if (hasMentionToUser) {
		subjectKey = 'Offline_Mention_Email';
	}

ggazzo avatar Mar 12 '19 05:03 ggazzo