diff --git a/apps/viewer/assets/emails/almostReachedChatsLimitEmail.ts b/apps/viewer/assets/emails/almostReachedChatsLimitEmail.ts index f8de632679..33cc7398a4 100644 --- a/apps/viewer/assets/emails/almostReachedChatsLimitEmail.ts +++ b/apps/viewer/assets/emails/almostReachedChatsLimitEmail.ts @@ -30,4 +30,4 @@ p { display:block;margin:13px 0; }
header image
Your bots are chatting a lot. That's amazing. ❤️
This means you've almost reached your monthly chats limit. You currently reached 80% of ${readableChatsLimit}.
This limit will be reset on ${readableResetDate}.
Your bots won't start the chat if you reach the limit before this date. ⚠️
If you need more monthly responses, you will need to upgrade your plan.
` +}
header image
Your bots are chatting a lot. That's amazing. 💙
This means you've almost reached your monthly chats limit. You currently reached 80% of ${readableChatsLimit}.
This limit will be reset on ${readableResetDate}.
Your bots won't start the chat if you reach the limit before this date. ⚠️
If you need more monthly responses, you will need to upgrade your plan.
` diff --git a/apps/viewer/assets/emails/almostReachedStorageLimitEmail.ts b/apps/viewer/assets/emails/almostReachedStorageLimitEmail.ts index c3ea6ced1a..f36e3f0bc6 100644 --- a/apps/viewer/assets/emails/almostReachedStorageLimitEmail.ts +++ b/apps/viewer/assets/emails/almostReachedStorageLimitEmail.ts @@ -28,4 +28,4 @@ p { display:block;margin:13px 0; }
header image
Your bots are working a lot. That's amazing. 🤖
This means you've almost reached your storage limit. You currently reached 80% of your ${readableStorageLimit} limit.
Your bots won't collect new files once you reach the limit. ⚠️
To make sure it won't happen, you need to upgrade your plan or delete existing results to free up space.
` +}
header image
Your bots are working a lot. That's amazing. 🤖
This means you've almost reached your storage limit. You currently reached 80% of your ${readableStorageLimit} limit.
Your bots won't collect new files once you reach the limit. ⚠️
To make sure it won't happen, you need to upgrade your plan or delete existing results to free up space.
` diff --git a/apps/viewer/assets/emails/reachedChatsLimitEmail.ts b/apps/viewer/assets/emails/reachedChatsLimitEmail.ts index 67049263f8..93a4583783 100644 --- a/apps/viewer/assets/emails/reachedChatsLimitEmail.ts +++ b/apps/viewer/assets/emails/reachedChatsLimitEmail.ts @@ -30,4 +30,4 @@ p { display:block;margin:13px 0; }
header image
It just happened, you've reached your monthly ${readableChatsLimit} chats limit üòÆ
It means your bots are closed until ${readableResetDate}.
If you'd like to continue chatting with your users this month, then you need to upgrade your plan. üöÄ
` +}
header image
It just happened, you've reached your monthly ${readableChatsLimit} chats limit 😮
It means your bots are closed until ${readableResetDate}.
If you'd like to continue chatting with your users this month, then you need to upgrade your plan. 🚀
` diff --git a/apps/viewer/assets/emails/reachedStorageLimitEmail.ts b/apps/viewer/assets/emails/reachedStorageLimitEmail.ts index 9b057b2e0c..5abdf2dfff 100644 --- a/apps/viewer/assets/emails/reachedStorageLimitEmail.ts +++ b/apps/viewer/assets/emails/reachedStorageLimitEmail.ts @@ -28,4 +28,4 @@ p { display:block;margin:13px 0; }
header image
It just happened, you've reached your ${readableStorageLimit} storage limit üòÆ
It means your bots won't collect new files from your users.
If you'd like to continue collecting files, then you need to upgrade your plan or remove existing results to free up space. üöÄ
` +}
header image
It just happened, you've reached your ${readableStorageLimit} storage limit 😮
It means your bots won't collect new files from your users.
If you'd like to continue collecting files, then you need to upgrade your plan or remove existing results to free up space. 🚀
` diff --git a/apps/viewer/pages/api/typebots/[typebotId]/results.ts b/apps/viewer/pages/api/typebots/[typebotId]/results.ts index 8ec0501f1c..bf9568135a 100644 --- a/apps/viewer/pages/api/typebots/[typebotId]/results.ts +++ b/apps/viewer/pages/api/typebots/[typebotId]/results.ts @@ -135,7 +135,7 @@ const sendAlmostReachChatsLimitEmail = async ({ await sendEmailNotification({ to: members.map((member) => member.user.email).filter(isDefined), - subject: "You've been invited to collaborate 🤝", + subject: "You're close to your chats limit", html: almostReachedChatsLimitEmail({ readableChatsLimit, readableResetDate, @@ -169,7 +169,7 @@ const sendReachedAlertEmail = async ({ .join(' ') await sendEmailNotification({ to: members.map((member) => member.user.email).filter(isDefined), - subject: "You've been invited to collaborate 🤝", + subject: "You've hit your monthly chats limit", html: reachedSChatsLimitEmail({ readableChatsLimit, readableResetDate, diff --git a/packages/utils/api/sendEmailNotification.ts b/packages/utils/api/sendEmailNotification.ts index 71a2fe2094..94ae39a155 100644 --- a/packages/utils/api/sendEmailNotification.ts +++ b/packages/utils/api/sendEmailNotification.ts @@ -12,7 +12,7 @@ export const sendEmailNotification = (props: Omit) => { }) return transporter.sendMail({ - from: env('SMTP_FROM'), + from: process.env.SMTP_FROM ?? env('SMTP_FROM'), ...props, }) }