Better E-mail for new user

This commit is contained in:
gkrishnan724
2016-11-19 16:53:37 +05:30
parent e79d51ee5a
commit 8cc4b6e4f1
@@ -57,8 +57,8 @@ public class GmailBackedPlatformEmailService implements PlatformEmailService {
} }
email.setFrom(authuser, authuserName); email.setFrom(authuser, authuserName);
final StringBuilder subjectBuilder = new StringBuilder().append("Fineract Prototype Demo: ").append(emailDetail.getContactName()) final StringBuilder subjectBuilder = new StringBuilder().append("Welcome ").append(emailDetail.getContactName())
.append(" user account creation."); .append(" to ").append(emailDetail.getOrganisationName());
email.setSubject(subjectBuilder.toString()); email.setSubject(subjectBuilder.toString());
@@ -66,9 +66,11 @@ public class GmailBackedPlatformEmailService implements PlatformEmailService {
final StringBuilder messageBuilder = new StringBuilder().append("You are receiving this email as your email account: ") final StringBuilder messageBuilder = new StringBuilder().append("You are receiving this email as your email account: ")
.append(sendToEmail).append(" has being used to create a user account for an organisation named [") .append(sendToEmail).append(" has being used to create a user account for an organisation named [")
.append(emailDetail.getOrganisationName()).append("] on Fineract Prototype Demo.") .append(emailDetail.getOrganisationName()).append("] on Mifos.\n")
.append("You can login using the following credentials: username: ").append(emailDetail.getUsername()) .append("You can login using the following credentials:\nusername: ").append(emailDetail.getUsername()).append("\n")
.append(" password: ").append(unencodedPassword); .append("password: ").append(unencodedPassword).append("\n")
.append("You must change this password upon first log in using Uppercase, Lowercase, number and character.\n")
.append("Thank you and welcome to the organisation.");
email.setMsg(messageBuilder.toString()); email.setMsg(messageBuilder.toString());