Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

fix(user): make community welcome email generic and skip it in production (#14103)

Prajwal N Le63c7924009c
diff --git a/crates/router/src/core/user.rs b/crates/router/src/core/user.rs
index f134f3db25..1377a54449 100644
--- a/crates/router/src/core/user.rs
+++ b/crates/router/src/core/user.rs
@@ -397,7 +397,9 @@ pub async fn connect_account(
logger::info!(?magic_link_result);
- if state.tenant.tenant_id.get_string_repr() == common_utils::consts::DEFAULT_TENANT {
+ if state.tenant.tenant_id.get_string_repr() == common_utils::consts::DEFAULT_TENANT
+ && !matches!(env::which(), env::Env::Production)
+ {
let welcome_to_community_email = email_types::WelcomeToCommunity {
recipient_email: domain::UserEmail::from_pii_email(user_from_db.get_email())?,
};
diff --git a/crates/router/src/services/email/assets/welcome_to_community.html b/crates/router/src/services/email/assets/welcome_to_community.html
index f7e9b15b33..ed1b849c36 100644
--- a/crates/router/src/services/email/assets/welcome_to_community.html
+++ b/crates/router/src/services/email/assets/welcome_to_community.html
@@ -33,9 +33,9 @@
<div>
<p>Hello there,</p>
<p>
- I'm Neeraj from the Community Growth team at Hyperswitch. We're building
- the world's first open-source payments orchestration platform to
- simplify payment diversity and accelerate innovation.
+ We're the Community Growth team at Hyperswitch. We're building the
+ world's first open-source payments orchestration platform to simplify
+ payment diversity and accelerate innovation.
</p>
<p>
Learn more about our journey in this blog:
@@ -63,7 +63,7 @@
>.
</p>
<p>Let’s build the future of payments, together.</p>
- <p>Thank you,<br />Neeraj | Hyperswitch.io</p>
+ <p>Thank you,<br />Team Hyperswitch | Hyperswitch.io</p>
</div>
</body>
</html>