fineract-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nazeer1100...@apache.org
Subject incubator-fineract git commit: Better E-mail for new user
Date Tue, 22 Nov 2016 10:58:40 GMT
Repository: incubator-fineract
Updated Branches:
  refs/heads/develop e79d51ee5 -> 8cc4b6e4f


Better E-mail for new user


Project: http://git-wip-us.apache.org/repos/asf/incubator-fineract/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-fineract/commit/8cc4b6e4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-fineract/tree/8cc4b6e4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-fineract/diff/8cc4b6e4

Branch: refs/heads/develop
Commit: 8cc4b6e4f1aa3a38a153e484b2d4003118d7a6ce
Parents: e79d51e
Author: gkrishnan724 <gkrishnan724@gmail.com>
Authored: Thu Oct 27 18:02:02 2016 +0530
Committer: gkrishnan724 <gkrishnan724@gmail.com>
Committed: Sat Nov 19 16:53:37 2016 +0530

----------------------------------------------------------------------
 .../core/service/GmailBackedPlatformEmailService.java   | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-fineract/blob/8cc4b6e4/fineract-provider/src/main/java/org/apache/fineract/infrastructure/core/service/GmailBackedPlatformEmailService.java
----------------------------------------------------------------------
diff --git a/fineract-provider/src/main/java/org/apache/fineract/infrastructure/core/service/GmailBackedPlatformEmailService.java
b/fineract-provider/src/main/java/org/apache/fineract/infrastructure/core/service/GmailBackedPlatformEmailService.java
index 9e86664..1b86477 100644
--- a/fineract-provider/src/main/java/org/apache/fineract/infrastructure/core/service/GmailBackedPlatformEmailService.java
+++ b/fineract-provider/src/main/java/org/apache/fineract/infrastructure/core/service/GmailBackedPlatformEmailService.java
@@ -57,8 +57,8 @@ public class GmailBackedPlatformEmailService implements PlatformEmailService
{
         	}
         	email.setFrom(authuser, authuserName);
 
-            final StringBuilder subjectBuilder = new StringBuilder().append("Fineract Prototype
Demo: ").append(emailDetail.getContactName())
-                    .append(" user account creation.");
+            final StringBuilder subjectBuilder = new StringBuilder().append("Welcome ").append(emailDetail.getContactName())
+                    .append(" to ").append(emailDetail.getOrganisationName());
 
             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: ")
                     .append(sendToEmail).append(" has being used to create a user account
for an organisation named [")
-                    .append(emailDetail.getOrganisationName()).append("] on Fineract Prototype
Demo.")
-                    .append("You can login using the following credentials: username: ").append(emailDetail.getUsername())
-                    .append(" password: ").append(unencodedPassword);
+                    .append(emailDetail.getOrganisationName()).append("] on Mifos.\n")
+                    .append("You can login using the following credentials:\nusername: ").append(emailDetail.getUsername()).append("\n")
+                    .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());
 


Mime
View raw message