-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[email] retention mails for usage consumption #6810
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
grittypuffy
wants to merge
8
commits into
ente-io:main
Choose a base branch
from
grittypuffy:server/email-retention-v2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
e835800
[server] add email notification template for storage limit exceeding 95%
grittypuffy ca91031
[docs] reduce verbose description in quickstart
grittypuffy 7dc877d
[server] send storage exceeding alerts for both free and paid users
grittypuffy 4171451
[server] delete utilization notification for playstore and app store …
grittypuffy 22fa8aa
[email] directly delete notification for storage quota mail
grittypuffy 4617b07
Merge branch 'main' into server/email-retention-v2
grittypuffy 9449f97
[email] fix remote store controller initialization
grittypuffy d89c340
[email] set bound for exceeding mail to not send exceeded in case of …
grittypuffy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
141 changes: 141 additions & 0 deletions
141
server/mail-templates/storage_limit_exceeding_free.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,141 @@ | ||
| <!DOCTYPE html> | ||
| <html> | ||
| <meta content="text/html; charset=utf-8" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1, | ||
| minimum-scale=1" /> | ||
| <style> | ||
| body { | ||
| background-color: #f0f1f3; | ||
| font-family: "Helvetica Neue", "Segoe UI", Helvetica, sans-serif; | ||
| font-size: 16px; | ||
| line-height: 27px; | ||
| margin: 0; | ||
| color: #444; | ||
| } | ||
|
|
||
| pre { | ||
| background: #f4f4f4f4; | ||
| padding: 2px; | ||
| } | ||
|
|
||
| table { | ||
| width: 100%; | ||
| border: 1px solid #ddd; | ||
| } | ||
|
|
||
| table td { | ||
| border-color: #ddd; | ||
| padding: 5px; | ||
| } | ||
|
|
||
| .wrap { | ||
| background-color: #fff; | ||
| padding: 30px; | ||
| max-width: 525px; | ||
| margin: 0 auto; | ||
| border-radius: 5px; | ||
| } | ||
|
|
||
| .button { | ||
| background: #0055d4; | ||
| border-radius: 3px; | ||
| text-decoration: none !important; | ||
| color: #fff !important; | ||
| font-weight: bold; | ||
| padding: 10px 30px; | ||
| display: inline-block; | ||
| } | ||
|
|
||
| .button:hover { | ||
| background: #111; | ||
| } | ||
|
|
||
| .footer { | ||
| text-align: center; | ||
| font-size: 12px; | ||
| color: #888; | ||
| } | ||
|
|
||
| .footer a { | ||
| color: #888; | ||
| margin-right: 5px; | ||
| } | ||
|
|
||
| .gutter { | ||
| padding: 30px; | ||
| } | ||
|
|
||
| img { | ||
| max-width: 100%; | ||
| height: auto; | ||
| } | ||
|
|
||
| a { | ||
| color: #0055d4; | ||
| } | ||
|
|
||
| a:hover { | ||
| color: #111; | ||
| } | ||
|
|
||
| @media screen and (max-width: 600px) { | ||
| .wrap { | ||
| max-width: auto; | ||
| } | ||
|
|
||
| .gutter { | ||
| padding: 10px; | ||
| } | ||
| } | ||
|
|
||
| .footer-icons { | ||
| padding: 4px !important; | ||
| width: 24px !important; | ||
| } | ||
| </style> | ||
|
|
||
| <body> | ||
| <div class="gutter" style="padding: 4px"> </div> | ||
| <div class="wrap" style=" background-color: rgb(255, 255, 255); padding: 2px | ||
| 30px 30px 30px; max-width: 525px; margin: 0 auto; border-radius: 5px; | ||
| font-size: 16px; " > | ||
| <p>Hi there,</p> | ||
|
|
||
| <p>You have used 95% of your available storage on Ente Photos. All your photos on Ente will continue to remain safe and accessible. However, new photos will not be backed up after you get to 100%.</p> | ||
|
|
||
| <p>Please upgrade your plan so that all the new photos you take can be backed up. Once you upgrade, you will be able to access family plans, photo and album sharing, and all your photos will have triple backups. | ||
| You can also use our referral program to get more storage at no additional cost.</p> | ||
|
|
||
| <p>For any help, please reach out to <a href="mailto:[email protected]">[email protected]</a> or reply to this email.</p> | ||
| </div> | ||
| <br /> | ||
| <div class="footer" style="text-align: center; font-size: 12px; color: | ||
| rgb(136, 136, 136)" > | ||
| <div> | ||
| <a href="https://ente.io" target="_blank" ><img | ||
| src="https://email-assets.ente.io/ente-green.png" style="width: 100px; | ||
| padding: 24px" title="Ente" alt="Ente" /></a> | ||
| </div> | ||
| <div> | ||
| <a href="https://fosstodon.org/@ente" target="_blank" ><img | ||
| src="https://email-assets.ente.io/mastodon-icon.png" | ||
| class="footer-icons" style="width: 24px; padding: 4px" title="Mastodon" | ||
| alt="Mastodon" /></a> | ||
| <a href="https://twitter.com/enteio" target="_blank" ><img | ||
| src="https://email-assets.ente.io/twitter-icon.png" class="footer-icons" | ||
| style="width: 24px; padding: 4px" title="Twitter" alt="Twitter" /></a> | ||
| <a href="https://discord.ente.io" target="_blank" ><img | ||
| src="https://email-assets.ente.io/discord-icon.png" class="footer-icons" | ||
| style="width: 24px; padding: 4px" title="Discord" alt="Discord" /></a> | ||
| <a href="https://github.com/ente-io" target="_blank" ><img | ||
| src="https://email-assets.ente.io/github-icon.png" class="footer-icons" | ||
| style="width: 24px; padding: 4px" title="GitHub" alt="GitHub" /></a> | ||
| </div> | ||
| <p> | ||
| Ente Technologies, Inc. | ||
| <br /> 1111B S Governors Ave 6032 Dover, DE 19904 | ||
| </p> | ||
| <br /> | ||
| </div> | ||
| </body> | ||
| </html> |
140 changes: 140 additions & 0 deletions
140
server/mail-templates/storage_limit_exceeding_paid.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,140 @@ | ||
| <!DOCTYPE html> | ||
| <html> | ||
| <meta content="text/html; charset=utf-8" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1, | ||
| minimum-scale=1" /> | ||
| <style> | ||
| body { | ||
| background-color: #f0f1f3; | ||
| font-family: "Helvetica Neue", "Segoe UI", Helvetica, sans-serif; | ||
| font-size: 16px; | ||
| line-height: 27px; | ||
| margin: 0; | ||
| color: #444; | ||
| } | ||
|
|
||
| pre { | ||
| background: #f4f4f4f4; | ||
| padding: 2px; | ||
| } | ||
|
|
||
| table { | ||
| width: 100%; | ||
| border: 1px solid #ddd; | ||
| } | ||
|
|
||
| table td { | ||
| border-color: #ddd; | ||
| padding: 5px; | ||
| } | ||
|
|
||
| .wrap { | ||
| background-color: #fff; | ||
| padding: 30px; | ||
| max-width: 525px; | ||
| margin: 0 auto; | ||
| border-radius: 5px; | ||
| } | ||
|
|
||
| .button { | ||
| background: #0055d4; | ||
| border-radius: 3px; | ||
| text-decoration: none !important; | ||
| color: #fff !important; | ||
| font-weight: bold; | ||
| padding: 10px 30px; | ||
| display: inline-block; | ||
| } | ||
|
|
||
| .button:hover { | ||
| background: #111; | ||
| } | ||
|
|
||
| .footer { | ||
| text-align: center; | ||
| font-size: 12px; | ||
| color: #888; | ||
| } | ||
|
|
||
| .footer a { | ||
| color: #888; | ||
| margin-right: 5px; | ||
| } | ||
|
|
||
| .gutter { | ||
| padding: 30px; | ||
| } | ||
|
|
||
| img { | ||
| max-width: 100%; | ||
| height: auto; | ||
| } | ||
|
|
||
| a { | ||
| color: #0055d4; | ||
| } | ||
|
|
||
| a:hover { | ||
| color: #111; | ||
| } | ||
|
|
||
| @media screen and (max-width: 600px) { | ||
| .wrap { | ||
| max-width: auto; | ||
| } | ||
|
|
||
| .gutter { | ||
| padding: 10px; | ||
| } | ||
| } | ||
|
|
||
| .footer-icons { | ||
| padding: 4px !important; | ||
| width: 24px !important; | ||
| } | ||
| </style> | ||
|
|
||
| <body> | ||
| <div class="gutter" style="padding: 4px"> </div> | ||
| <div class="wrap" style=" background-color: rgb(255, 255, 255); padding: 2px | ||
| 30px 30px 30px; max-width: 525px; margin: 0 auto; border-radius: 5px; | ||
| font-size: 16px; " > | ||
| <p>Hi there,</p> | ||
|
|
||
| <p>You have used 95% of your available storage on Ente Photos. All your photos on Ente will continue to remain safe and accessible. However, new photos will not be backed up after you get to 100%.</p> | ||
|
|
||
| <p>Please upgrade your plan so that all the new photos you take can be backed up. You can also use our referral program to get more storage at no additional cost.</p> | ||
|
|
||
| <p>For any help, please reach out to <a href="mailto:[email protected]">[email protected]</a> or reply to this email.</p> | ||
| </div> | ||
| <br /> | ||
| <div class="footer" style="text-align: center; font-size: 12px; color: | ||
| rgb(136, 136, 136)" > | ||
| <div> | ||
| <a href="https://ente.io" target="_blank" ><img | ||
| src="https://email-assets.ente.io/ente-green.png" style="width: 100px; | ||
| padding: 24px" title="Ente" alt="Ente" /></a> | ||
| </div> | ||
| <div> | ||
| <a href="https://fosstodon.org/@ente" target="_blank" ><img | ||
| src="https://email-assets.ente.io/mastodon-icon.png" | ||
| class="footer-icons" style="width: 24px; padding: 4px" title="Mastodon" | ||
| alt="Mastodon" /></a> | ||
| <a href="https://twitter.com/enteio" target="_blank" ><img | ||
| src="https://email-assets.ente.io/twitter-icon.png" class="footer-icons" | ||
| style="width: 24px; padding: 4px" title="Twitter" alt="Twitter" /></a> | ||
| <a href="https://discord.ente.io" target="_blank" ><img | ||
| src="https://email-assets.ente.io/discord-icon.png" class="footer-icons" | ||
| style="width: 24px; padding: 4px" title="Discord" alt="Discord" /></a> | ||
| <a href="https://github.com/ente-io" target="_blank" ><img | ||
| src="https://email-assets.ente.io/github-icon.png" class="footer-icons" | ||
| style="width: 24px; padding: 4px" title="GitHub" alt="GitHub" /></a> | ||
| </div> | ||
| <p> | ||
| Ente Technologies, Inc. | ||
| <br /> 1111B S Governors Ave 6032 Dover, DE 19904 | ||
| </p> | ||
| <br /> | ||
| </div> | ||
| </body> | ||
| </html> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.