diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/constants/ce/EmailConstantsCE.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/constants/ce/EmailConstantsCE.java
index 6d2abde6d6..8073c1a122 100644
--- a/app/server/appsmith-server/src/main/java/com/appsmith/server/constants/ce/EmailConstantsCE.java
+++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/constants/ce/EmailConstantsCE.java
@@ -11,14 +11,16 @@ public class EmailConstantsCE {
public static final String PRIMARY_LINK_URL = "primaryLinkUrl";
public static final String PRIMARY_LINK_TEXT = "primaryLinkText";
public static final String PRIMARY_LINK_TEXT_USER_SIGNUP = "Sign up now";
- public static final String PRIMARY_LINK_TEXT_INVITE_TO_INSTANCE = "Go to instance";
+ public static final String PRIMARY_LINK_TEXT_INVITE_TO_INSTANCE_CE = "Join your Appsmith instance";
public static final String PRIMARY_LINK_TEXT_WORKSPACE_REDIRECTION = "Go to your Appsmith workspace";
public static final String INVITE_USER_CLIENT_URL_FORMAT = "%s/user/signup?email=%s";
- public static final String WORKSPACE_EMAIL_SUBJECT_FOR_NEW_USER = "You’re invited to the workspace %s.";
+ public static final String INVITE_TO_WORKSPACE_EMAIL_SUBJECT_CE =
+ "You’re invited to the Appsmith workspace. \uD83E\uDD73";
public static final String FORGOT_PASSWORD_EMAIL_SUBJECT = "Reset your Appsmith password";
public static final String EMAIL_VERIFICATION_EMAIL_SUBJECT = "Verify your account";
- public static final String INSTANCE_ADMIN_INVITE_EMAIL_SUBJECT = "You're invited to an Appsmith instance";
+ public static final String INSTANCE_ADMIN_INVITE_EMAIL_SUBJECT =
+ "You're invited to an Appsmith instance. \uD83E\uDD73";
public static final String INVITE_WORKSPACE_TEMPLATE_EXISTING_USER_CE =
"email/ce/inviteWorkspaceExistingUserTemplate.html";
public static final String INVITE_WORKSPACE_TEMPLATE_NEW_USER_CE = "email/ce/inviteWorkspaceNewUserTemplate.html";
diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/EmailServiceHelperCE.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/EmailServiceHelperCE.java
index 0c4ff608fd..db905304a4 100644
--- a/app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/EmailServiceHelperCE.java
+++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/EmailServiceHelperCE.java
@@ -14,4 +14,10 @@ public interface EmailServiceHelperCE {
String getEmailVerificationTemplate();
String getAdminInstanceInviteTemplate();
+
+ String getJoinInstanceCtaPrimaryText();
+
+ String getSubjectJoinInstanceAsAdmin(String instanceName);
+
+ String getSubjectJoinWorkspace(String workspaceName);
}
diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/EmailServiceHelperCEImpl.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/EmailServiceHelperCEImpl.java
index 3360126080..2dca84c12c 100644
--- a/app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/EmailServiceHelperCEImpl.java
+++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/EmailServiceHelperCEImpl.java
@@ -11,10 +11,13 @@ import java.util.Map;
import static com.appsmith.server.constants.ce.EmailConstantsCE.EMAIL_VERIFICATION_EMAIL_TEMPLATE_CE;
import static com.appsmith.server.constants.ce.EmailConstantsCE.FORGOT_PASSWORD_TEMPLATE_CE;
+import static com.appsmith.server.constants.ce.EmailConstantsCE.INSTANCE_ADMIN_INVITE_EMAIL_SUBJECT;
import static com.appsmith.server.constants.ce.EmailConstantsCE.INSTANCE_ADMIN_INVITE_EMAIL_TEMPLATE;
import static com.appsmith.server.constants.ce.EmailConstantsCE.INSTANCE_NAME;
+import static com.appsmith.server.constants.ce.EmailConstantsCE.INVITE_TO_WORKSPACE_EMAIL_SUBJECT_CE;
import static com.appsmith.server.constants.ce.EmailConstantsCE.INVITE_WORKSPACE_TEMPLATE_EXISTING_USER_CE;
import static com.appsmith.server.constants.ce.EmailConstantsCE.INVITE_WORKSPACE_TEMPLATE_NEW_USER_CE;
+import static com.appsmith.server.constants.ce.EmailConstantsCE.PRIMARY_LINK_TEXT_INVITE_TO_INSTANCE_CE;
@Component
@AllArgsConstructor
@@ -52,4 +55,19 @@ public class EmailServiceHelperCEImpl implements EmailServiceHelperCE {
public String getAdminInstanceInviteTemplate() {
return INSTANCE_ADMIN_INVITE_EMAIL_TEMPLATE;
}
+
+ @Override
+ public String getJoinInstanceCtaPrimaryText() {
+ return PRIMARY_LINK_TEXT_INVITE_TO_INSTANCE_CE;
+ }
+
+ @Override
+ public String getSubjectJoinInstanceAsAdmin(String instanceName) {
+ return INSTANCE_ADMIN_INVITE_EMAIL_SUBJECT;
+ }
+
+ @Override
+ public String getSubjectJoinWorkspace(String workspaceName) {
+ return INVITE_TO_WORKSPACE_EMAIL_SUBJECT_CE;
+ }
}
diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/EmailServiceCEImpl.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/EmailServiceCEImpl.java
index 95571ce473..dddb54db66 100644
--- a/app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/EmailServiceCEImpl.java
+++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/EmailServiceCEImpl.java
@@ -55,7 +55,7 @@ public class EmailServiceCEImpl implements EmailServiceCE {
originHeader,
URLEncoder.encode(invitedUser.getUsername().toLowerCase(), StandardCharsets.UTF_8))
: originHeader;
- String emailSubject = String.format(WORKSPACE_EMAIL_SUBJECT_FOR_NEW_USER, workspaceInvitedTo.getName());
+ String emailSubject = emailServiceHelper.getSubjectJoinWorkspace(workspaceInvitedTo.getName());
Map