π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Update outgoing emails from ente.io to ente.com
Vishnu Mohandasefa8fa1add14
diff --git a/server/mail-templates/family_nudge.html b/server/mail-templates/family_nudge.htmlindex f22464b8c2..e792cc816f 100644--- a/server/mail-templates/family_nudge.html+++ b/server/mail-templates/family_nudge.html@@ -108,7 +108,7 @@You can add family members to your account by going toSettings -> Manage Subscriptions -> Manage Family.</p>- <p>For more information, you can also visit our <a href="https://ente.com/help" target="_blank">help page</a> or reach out to <a href="mailto:[email protected]">[email protected]</a>+ <p>For more information, you can also visit our <a href="https://ente.com/help" target="_blank">help page</a> or reach out to <a href="mailto:[email protected]">[email protected]</a></div><br /><div class="footer" style="text-align: center; font-size: 12px; color:diff --git a/server/mail-templates/inactive-user-deletion/confirm_13m.html b/server/mail-templates/inactive-user-deletion/confirm_13m.htmlindex b49fb89373..115d5008fc 100644--- a/server/mail-templates/inactive-user-deletion/confirm_13m.html+++ b/server/mail-templates/inactive-user-deletion/confirm_13m.html@@ -4,5 +4,5 @@<p>Hi,</p><p>Your Ente account associated with <strong>{{.Email}}</strong> and associated data was deleted on {{.DeletionDate}} because there was no activity across our apps for more than 13 months.</p>-<p>If you believe this was a mistake, you can reply to this email or send an email to <a href="mailto:[email protected]">[email protected]</a>.</p>+<p>If you believe this was a mistake, you can reply to this email or send an email to <a href="mailto:[email protected]">[email protected]</a>.</p>{{end}}diff --git a/server/mail-templates/inactive-user-deletion/warn_1d.html b/server/mail-templates/inactive-user-deletion/warn_1d.htmlindex d167442ce9..4dc9e98e1b 100644--- a/server/mail-templates/inactive-user-deletion/warn_1d.html+++ b/server/mail-templates/inactive-user-deletion/warn_1d.html@@ -6,5 +6,5 @@<p>We're reaching out because your Ente account associated with <strong>{{.Email}}</strong> hasn't been used across any of our apps for more than 12 months.</p><p>If there's no activity before {{.DeletionDate}} (tomorrow), we'll delete your account and associated data as part of our inactive-account policy.</p><p>To keep your account, simply <a href="https://web.ente.io">sign in</a> or use any Ente app before {{.DeletionDate}}.</p>-<p>If you think this is a mistake or you need help accessing your account, you can reply to this email or send an email to <a href="mailto:[email protected]">[email protected]</a>.</p>+<p>If you think this is a mistake or you need help accessing your account, you can reply to this email or send an email to <a href="mailto:[email protected]">[email protected]</a>.</p>{{end}}diff --git a/server/mail-templates/inactive-user-deletion/warn_1m.html b/server/mail-templates/inactive-user-deletion/warn_1m.htmlindex 616b5a541f..9d17a72431 100644--- a/server/mail-templates/inactive-user-deletion/warn_1m.html+++ b/server/mail-templates/inactive-user-deletion/warn_1m.html@@ -6,5 +6,5 @@<p>We're reaching out because your Ente account associated with <strong>{{.Email}}</strong> hasn't been used across any of our apps for more than 12 months.</p><p>If there's no activity before {{.DeletionDate}} (in 30 days), we'll delete your account and associated data as part of our inactive-account policy.</p><p>To keep your account, simply <a href="https://web.ente.io">sign in</a> or use any Ente app before {{.DeletionDate}}.</p>-<p>If you think this is a mistake or you need help accessing your account, reply to this email or send an email to <a href="mailto:[email protected]">[email protected]</a>.</p>+<p>If you think this is a mistake or you need help accessing your account, reply to this email or send an email to <a href="mailto:[email protected]">[email protected]</a>.</p>{{end}}diff --git a/server/mail-templates/inactive-user-deletion/warn_2m.html b/server/mail-templates/inactive-user-deletion/warn_2m.htmlindex 19e9a75f50..bc53cb8b18 100644--- a/server/mail-templates/inactive-user-deletion/warn_2m.html+++ b/server/mail-templates/inactive-user-deletion/warn_2m.html@@ -6,5 +6,5 @@<p>We're reaching out because your Ente account associated with <strong>{{.Email}}</strong> hasn't been used across any of our apps for more than 11 months.</p><p>If there's no activity before {{.DeletionDate}}, we'll delete your account and associated data as part of our inactive-account policy.</p><p>To keep your account, simply <a href="https://web.ente.io">sign in</a> or use any Ente app before {{.DeletionDate}}.</p>-<p>If you think this is a mistake or you need help accessing your account, reply to this email or send an email to <a href="mailto:[email protected]">[email protected]</a>.</p>+<p>If you think this is a mistake or you need help accessing your account, reply to this email or send an email to <a href="mailto:[email protected]">[email protected]</a>.</p>{{end}}diff --git a/server/mail-templates/inactive-user-deletion/warn_7d.html b/server/mail-templates/inactive-user-deletion/warn_7d.htmlindex 49be4bb175..1ae6a3b84f 100644--- a/server/mail-templates/inactive-user-deletion/warn_7d.html+++ b/server/mail-templates/inactive-user-deletion/warn_7d.html@@ -6,5 +6,5 @@<p>We're reaching out because your Ente account associated with <strong>{{.Email}}</strong> hasn't been used across any of our apps for more than 12 months.</p><p>If there's no activity before {{.DeletionDate}} (in 7 days), we'll delete your account and associated data as part of our inactive-account policy.</p><p>To keep your account, simply <a href="https://web.ente.io">sign in</a> or use any Ente app before {{.DeletionDate}}.</p>-<p>If you think this is a mistake or you need help accessing your account, you can reply to this email or send an email to <a href="mailto:[email protected]">[email protected]</a>.</p>+<p>If you think this is a mistake or you need help accessing your account, you can reply to this email or send an email to <a href="mailto:[email protected]">[email protected]</a>.</p>{{end}}diff --git a/server/mail-templates/ott.html b/server/mail-templates/ott.htmlindex 328e834bf5..19c891f7cd 100644--- a/server/mail-templates/ott.html+++ b/server/mail-templates/ott.html@@ -101,7 +101,7 @@ a:hover {<div style="background-color:#DEDEDE; border-radius:6px; color:#00b33c; display:inline-block; letter-spacing:4px; padding:12px 18px 12px 18px; text-align:center; font-size:24px; font-weight: bold;" target="_blank">{{.VerificationCode}}</div></center><hr style="margin-top: 24px; margin-bottom: 24px" />- <p style="text-align: center; font-size: 14px;">Need help? Contact us at <a href="mailto:[email protected]" style=" color:#00b33c; display:inline-block">[email protected]</a>.</p></p>+ <p style="text-align: center; font-size: 14px;">Need help? Contact us at <a href="mailto:[email protected]" style=" color:#00b33c; display:inline-block">[email protected]</a>.</p></p></div><br /><div class="footer" style="text-align: center; font-size: 12px; color: rgb(136, 136, 136)">@@ -125,4 +125,4 @@ a:hover {</div></body>-</html>\ No newline at end of file+</html>diff --git a/server/pkg/controller/discountcoupon/controller.go b/server/pkg/controller/discountcoupon/controller.goindex a1b2eb7593..d8bbc07bba 100644--- a/server/pkg/controller/discountcoupon/controller.go+++ b/server/pkg/controller/discountcoupon/controller.go@@ -163,7 +163,7 @@ func (c *Controller) sendCouponEmail(ctx context.Context, user ente.User, couponsubject = fmt.Sprintf("Your %s Discount Code", providerName)templateName = "discount_coupon.html"}- return emailUtil.SendTemplatedEmailV2([]string{user.Email}, "Ente", "[email protected]", subject, "base.html", templateName, templateData, nil)+ return emailUtil.SendTemplatedEmailV2([]string{user.Email}, "Ente", "[email protected]", subject, "base.html", templateName, templateData, nil)}func (c *Controller) alertCouponsDepletedDiscord(providerName string) {diff --git a/server/pkg/controller/email/email_notification.go b/server/pkg/controller/email/email_notification.goindex 7adeb6e7f9..8e71225cdc 100644--- a/server/pkg/controller/email/email_notification.go+++ b/server/pkg/controller/email/email_notification.go@@ -80,7 +80,7 @@ func (c *EmailNotificationController) OnFirstFileUpload(userID int64, userAgentif os == uasurfer.OSAndroid || os == uasurfer.OSiOS {template = MobileAppFirstUploadTemplate}- err = email.SendTemplatedEmail([]string{user.Email}, "[email protected]", "[email protected]", FirstUploadEmailSubject, template, nil, nil)+ err = email.SendTemplatedEmail([]string{user.Email}, "[email protected]", "[email protected]", FirstUploadEmailSubject, template, nil, nil)if err != nil {log.Error("Error sending first upload email ", err)}@@ -95,7 +95,7 @@ func (c *EmailNotificationController) OnSuccessfulReferral(userID int64) {if err != nil {return}- err = email.SendTemplatedEmail([]string{user.Email}, "[email protected]", "[email protected]", ReferralSuccessfulSubject, ReferralSuccessfulTemplate, nil, nil)+ err = email.SendTemplatedEmail([]string{user.Email}, "[email protected]", "[email protected]", ReferralSuccessfulSubject, ReferralSuccessfulTemplate, nil, nil)if err != nil {log.Error("Error sending first upload email ", err)}@@ -115,7 +115,7 @@ func (c *EmailNotificationController) OnLinkJoined(ownerID int64, otherUserID in"Role": role,}err = email.SendTemplatedEmailV2(- []string{user.Email}, "Ente", "[email protected]",+ []string{user.Email}, "Ente", "[email protected]",fmt.Sprintf("%s has joined your album", otherUser.Email), "base.html", "on_link_joined.html", data, nil)if err != nil {log.Error("Error sending link joined email ", err)@@ -147,7 +147,7 @@ func (c *EmailNotificationController) OnFilesCollected(userID int64) {}defer c.LockController.ReleaseLock(lockName)logger.Info("Notifying about files collected")- err = email.SendTemplatedEmail([]string{user.Email}, "[email protected]", "[email protected]", FilesCollectedSubject, FilesCollectedTemplate, nil, nil)+ err = email.SendTemplatedEmail([]string{user.Email}, "[email protected]", "[email protected]", FilesCollectedSubject, FilesCollectedTemplate, nil, nil)if err != nil {log.Error("Error sending files collected email ", err)}@@ -161,7 +161,7 @@ func (c *EmailNotificationController) OnAccountUpgrade(userID int64) {return}log.Info(fmt.Sprintf("Emailing on account upgrade %d", user.ID))- err = email.SendTemplatedEmail([]string{user.Email}, "[email protected]", "[email protected]", SubscriptionUpgradedSubject, SubscriptionUpgradedTemplate, nil, nil)+ err = email.SendTemplatedEmail([]string{user.Email}, "[email protected]", "[email protected]", SubscriptionUpgradedSubject, SubscriptionUpgradedTemplate, nil, nil)if err != nil {log.Error("Error sending files collected email ", err)}@@ -174,7 +174,7 @@ func (c *EmailNotificationController) OnSubscriptionCancelled(userID int64) {return}log.Info(fmt.Sprintf("Emailing on subscription cancellation %d", user.ID))- err = email.SendTemplatedEmail([]string{user.Email}, "[email protected]", "[email protected]", SubscriptionCancelledSubject, SubscriptionCancelledTemplate, nil, nil)+ err = email.SendTemplatedEmail([]string{user.Email}, "[email protected]", "[email protected]", SubscriptionCancelledSubject, SubscriptionCancelledTemplate, nil, nil)if err != nil {log.Error("Error sending email", err)}@@ -210,7 +210,7 @@ func (c *EmailNotificationController) SayHelloToCustomers() {continue}logger.Info("Sending hello email to customer")- err = email.SendTemplatedEmail([]string{u.Email}, "[email protected]", "[email protected]", CustomerHelloSubject, CustomerHelloTemplate, nil, nil)+ err = email.SendTemplatedEmail([]string{u.Email}, "[email protected]", "[email protected]", CustomerHelloSubject, CustomerHelloTemplate, nil, nil)if err != nil {logger.Info("Error notifying", err)continue@@ -250,7 +250,7 @@ func (c *EmailNotificationController) SendStorageLimitExceededMails() {continue}logger.Info("Alerting about storage limit exceeded")- err = email.SendTemplatedEmail([]string{u.Email}, "[email protected]", "[email protected]", StorageLimitExceededSubject, StorageLimitExceededTemplate, nil, nil)+ err = email.SendTemplatedEmail([]string{u.Email}, "[email protected]", "[email protected]", StorageLimitExceededSubject, StorageLimitExceededTemplate, nil, nil)if err != nil {logger.Info("Error notifying", err)continue@@ -298,7 +298,7 @@ func (c *EmailNotificationController) NudgePaidSubscriberForFamily() {}logger.Info("Sending family nudge mail to paid subscriber")- err = email.SendTemplatedEmail([]string{u.Email}, "[email protected]", "[email protected]", FamilyNudgeSubject, FamilyNudgeTemplate, nil, nil)+ err = email.SendTemplatedEmail([]string{u.Email}, "[email protected]", "[email protected]", FamilyNudgeSubject, FamilyNudgeTemplate, nil, nil)if err != nil {logger.Info("Error notifying", err)continuediff --git a/server/pkg/controller/email/storage_warning.go b/server/pkg/controller/email/storage_warning.goindex e620841567..fb6feaa2b7 100644--- a/server/pkg/controller/email/storage_warning.go+++ b/server/pkg/controller/email/storage_warning.go@@ -23,7 +23,7 @@ const (storageWarningBaseTemplate = "ente_base.html"storageWarningFromName = "Ente"- storageWarningFromEmail = "[email protected]"+ storageWarningFromEmail = "[email protected]"storageWarningOverageThreshold = 25 * (1 << 30)storageWarningPreviousStageFreshnessWindow = 35 * 24 * time.MicroSecondsInOneHourdiff --git a/server/pkg/controller/emergency/email.go b/server/pkg/controller/emergency/email.goindex d8730915d6..a5abc0880f 100644--- a/server/pkg/controller/emergency/email.go+++ b/server/pkg/controller/emergency/email.go@@ -117,7 +117,7 @@ func (c *Controller) sendContactNotification(ctx context.Context, legacyUserID ifor _, data := range emailDatas {content := data- err = emailUtil.SendTemplatedEmailV2([]string{content.emailTo}, "Ente", "[email protected]",+ err = emailUtil.SendTemplatedEmailV2([]string{content.emailTo}, "Ente", "[email protected]",content.title, BaseTemplate, content.templateName, content.templateData, content.inlineImages)if err != nil {log.WithError(err).WithFields(log.Fields{@@ -234,7 +234,7 @@ func (c *Controller) sendRecoveryNotification(ctx context.Context, legacyUserIDfor _, data := range emailDatas {content := data- err = emailUtil.SendTemplatedEmailV2([]string{content.emailTo}, "Ente", "[email protected]",+ err = emailUtil.SendTemplatedEmailV2([]string{content.emailTo}, "Ente", "[email protected]",content.title, BaseTemplate, content.templateName, content.templateData, content.inlineImages)if err != nil {log.WithError(err).WithFields(log.Fields{diff --git a/server/pkg/controller/family/admin.go b/server/pkg/controller/family/admin.goindex da83a1d4b3..f8c5b7a0e7 100644--- a/server/pkg/controller/family/admin.go+++ b/server/pkg/controller/family/admin.go@@ -292,7 +292,7 @@ func (c *Controller) sendNotification(ctx context.Context, adminUserID int64, mereturn stacktrace.Propagate(fmt.Errorf("unsupported status %s", newStatus), "")}inlineImages = append(inlineImages, inlineImage)- err = emailUtil.SendTemplatedEmail([]string{emailTo}, "ente", "[email protected]",+ err = emailUtil.SendTemplatedEmail([]string{emailTo}, "ente", "[email protected]",title, templateName, templateData, inlineImages)if err != nil {return stacktrace.Propagate(err, "")diff --git a/server/pkg/controller/offer/offer.go b/server/pkg/controller/offer/offer.goindex 60cb1ea125..6abe6f9b51 100644--- a/server/pkg/controller/offer/offer.go+++ b/server/pkg/controller/offer/offer.go@@ -116,7 +116,7 @@ func (c *OfferController) ApplyOffer(email string, productID string) error {return stacktrace.Propagate(err, "")}go c.UserCacheCtrl.GetActiveStorageBonus(context.Background(), userID)- go emailUtil.SendTemplatedEmail([]string{email}, "Ente", "[email protected]",+ go emailUtil.SendTemplatedEmail([]string{email}, "Ente", "[email protected]",ente.BF2024EmailSubject,ente.BF2024EmailTemplate, map[string]interface{}{"Storage": c.readableStorage(offerToBeApplied.Storage),diff --git a/server/pkg/controller/playstore.go b/server/pkg/controller/playstore.goindex 4c155792c8..c80804989d 100644--- a/server/pkg/controller/playstore.go+++ b/server/pkg/controller/playstore.go@@ -120,7 +120,7 @@ func (c *PlayStoreController) HandleNotification(notification playstore.Developereturn stacktrace.Propagate(surpErr, "")}if storage == nil || *storage <= 0 {- err = email.SendTemplatedEmail([]string{user.Email}, "ente", "[email protected]",+ err = email.SendTemplatedEmail([]string{user.Email}, "ente", "[email protected]",ente.SubscriptionEndedEmailSubject,ente.SubscriptionEndedEmailTemplate, map[string]interface{}{}, nil)if err != nil {@@ -136,7 +136,7 @@ func (c *PlayStoreController) HandleNotification(notification playstore.Developeif err != nil {return stacktrace.Propagate(err, "")}- err = email.SendTemplatedEmail([]string{user.Email}, "ente", "[email protected]",+ err = email.SendTemplatedEmail([]string{user.Email}, "ente", "[email protected]",ente.AccountOnHoldEmailSubject,ente.OnHoldTemplate, map[string]interface{}{"PaymentProvider": "PlayStore",diff --git a/server/pkg/controller/stripe.go b/server/pkg/controller/stripe.goindex ab1fb759be..679929f5e0 100644--- a/server/pkg/controller/stripe.go+++ b/server/pkg/controller/stripe.go@@ -584,7 +584,7 @@ func (c *StripeController) sendAccountOnHoldEmail(userID int64) error {if err != nil {return stacktrace.Propagate(err, "")}- err = email.SendTemplatedEmail([]string{user.Email}, "ente", "[email protected]",+ err = email.SendTemplatedEmail([]string{user.Email}, "ente", "[email protected]",ente.AccountOnHoldEmailSubject, ente.OnHoldTemplate, map[string]interface{}{"PaymentProvider": "Stripe",}, nil)diff --git a/server/pkg/controller/user/inactive_user_orchestrator.go b/server/pkg/controller/user/inactive_user_orchestrator.goindex ef852376f2..8d4b917b66 100644--- a/server/pkg/controller/user/inactive_user_orchestrator.go+++ b/server/pkg/controller/user/inactive_user_orchestrator.go@@ -27,7 +27,7 @@ const (inactiveUserWorkerCount = 6inactiveUserEmailInFlightLimit = 4inactiveUserDeletionFromName = "Ente"- inactiveUserDeletionFromEmail = "[email protected]"+ inactiveUserDeletionFromEmail = "[email protected]"inactiveUserDeletionBaseTemplate = "ente_base.html"InactiveUserDeletionWarn2mTemplateID = "inactive_user_deletion_warn_2m_v2"diff --git a/server/pkg/controller/user/user.go b/server/pkg/controller/user/user.goindex 71efeb6a18..02dddb7e86 100644--- a/server/pkg/controller/user/user.go+++ b/server/pkg/controller/user/user.go@@ -344,7 +344,7 @@ func (c *UserController) NotifyAccountDeletion(userID int64, userEmail string, itemplateData := make(map[string]interface{})templateData["AccountRecoveryLink"] = fmt.Sprintf("%s/users/recover-account?token=%s", "https://api.ente.io", recoverToken)- err := email.SendTemplatedEmail([]string{userEmail}, "ente", "[email protected]",+ err := email.SendTemplatedEmail([]string{userEmail}, "ente", "[email protected]",AccountDeletedEmailSubject, template, templateData, nil)if err != nil {logrus.WithError(err).Errorf("Failed to send the account deletion email to %s", userEmail)diff --git a/server/pkg/controller/user/userauth.go b/server/pkg/controller/user/userauth.goindex df2b9b0a70..f7ecce9086 100644--- a/server/pkg/controller/user/userauth.go+++ b/server/pkg/controller/user/userauth.go@@ -323,7 +323,7 @@ func (c *UserController) UpdateEmail(ctx *gin.Context, userID int64, email strinif err != nil {return stacktrace.Propagate(err, "")}- _ = emailUtil.SendTemplatedEmail([]string{user.Email}, "ente", "[email protected]",+ _ = emailUtil.SendTemplatedEmail([]string{user.Email}, "ente", "[email protected]",ente.EmailChangedSubject, ente.EmailChangedTemplate, map[string]interface{}{"NewEmail": email,}, nil)@@ -438,7 +438,7 @@ func (c *UserController) AddTokenAndNotify(ctx context.Context, userID int64, aplog.WithError(userErr).Error("Failed to get user")return}- emailSendErr := emailUtil.SendTemplatedEmail([]string{user.Email}, "Ente", "[email protected]", emailCtrl.LoginSuccessSubject, emailCtrl.LoginSuccessTemplate, map[string]interface{}{+ emailSendErr := emailUtil.SendTemplatedEmail([]string{user.Email}, "Ente", "[email protected]", emailCtrl.LoginSuccessSubject, emailCtrl.LoginSuccessTemplate, map[string]interface{}{"Date": t.Now().UTC().Format("02 Jan, 2006 15:04"),}, nil)if emailSendErr != nil {@@ -518,7 +518,7 @@ func emailOTT(app ente.App, to string, ott string, purpose string, mobile bool)}}subject := fmt.Sprintf("Verification code: %s", ott)- err := emailUtil.SendTemplatedEmail([]string{to}, "Ente", "[email protected]",+ err := emailUtil.SendTemplatedEmail([]string{to}, "Ente", "[email protected]",subject, templateName, map[string]interface{}{"VerificationCode": ott,}, nil)diff --git a/server/web-templates/account_recovered.html b/server/web-templates/account_recovered.htmlindex 4bb0c54962..601ec1b7ba 100644--- a/server/web-templates/account_recovered.html+++ b/server/web-templates/account_recovered.html@@ -104,7 +104,7 @@<p>You can now log in with your email address and password.</p>- <p>If you need help, please reach out to <a href="mailto:[email protected]" style="color: #37C066; font-weight: bold;">[email protected]</a>.</p>+ <p>If you need help, please reach out to <a href="mailto:[email protected]" style="color: #37C066; font-weight: bold;">[email protected]</a>.</p></div>diff --git a/server/web-templates/account_recovery_error.html b/server/web-templates/account_recovery_error.htmlindex 8ed4f7a9f8..645ae1a5ee 100644--- a/server/web-templates/account_recovery_error.html+++ b/server/web-templates/account_recovery_error.html@@ -102,7 +102,7 @@font-size: 16px; " ><p>Sorry, we could not recover your account.</p>- <p>If you need help, please reach out to <a href="mailto:[email protected]" style="color: #37C066; font-weight: bold;">[email protected]</a>.</p>+ <p>If you need help, please reach out to <a href="mailto:[email protected]" style="color: #37C066; font-weight: bold;">[email protected]</a>.</p></div>