Fix extra placeholders in smtp sender

This commit is contained in:
Maxime Dor
2017-09-27 03:30:53 +02:00
parent f3bbc7c7c6
commit 05c76a657e

View File

@@ -47,6 +47,7 @@ public class EmailNotificationGenerator extends GenericTemplateNotificationGener
@Override @Override
protected String populateForCommon(String body, ThreePid recipient) { protected String populateForCommon(String body, ThreePid recipient) {
body = super.populateForCommon(body, recipient);
body = body.replace("%FROM_EMAIL%", cfg.getIdentity().getFrom()); body = body.replace("%FROM_EMAIL%", cfg.getIdentity().getFrom());
body = body.replace("%FROM_NAME%", cfg.getIdentity().getName()); body = body.replace("%FROM_NAME%", cfg.getIdentity().getName());
return body; return body;