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

Edit email notification for direct message #6118

Closed
droup opened this issue Feb 21, 2017 · 1 comment
Closed

Edit email notification for direct message #6118

droup opened this issue Feb 21, 2017 · 1 comment

Comments

@droup
Copy link

droup commented Feb 21, 2017

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

@ggazzo
Copy link
Member

ggazzo commented Mar 12, 2019

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 ggazzo closed this as completed Mar 12, 2019
@ggazzo ggazzo added this to the 1.0.0 milestone Mar 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants