fleet/website/views/emails/email-subscription-renewal-confirmation.ejs
Eric 896918bc79
Website: Fleet Premium subscription renewals (#9200)
https://github.com/fleetdm/fleet/issues/9172

Changes:
- Added
`website/api/controllers/webhooks/recieve-stripe-subscription-events.js`
a webhook for receiving Stripe events.
- If the stripe event received is from a user's subscription
automatically renewing, A new license key is generated, the subscription
record is updated, and a renewal confirmation email is sent.
- If the stripe event received is from a user's subscription's upcoming
renewal, a renewal notification email is sent.
- If any other event type is received from Stripe, the webhook returns a
200 response.
- Added new email templates:
   - `email-subscription-renewal-confirmation`
   - `email-upcoming-subscription-renewal`
- Updated `website/api/controllers/admin/view-email-template-preview.js`
to have fake data for the added email templates.
- Updated `website/api/controllers/customers/view-dashboard.js` to set
two boolean variables: `subscriptionExpiresSoon` and
`subscriptionHasBeenRecentlyRenewed`
- Updated the customer dashboard to display notifications on the top of
the page if a user's subscription will renew in the next 30 days, or if
the user's subscription has been renewed in the past 30 days.
- `website/views/layouts/layout-email.ejs` - Updated the font, padding,
and text color to match wireframes.
2023-01-06 18:36:29 -06:00

20 lines
1.5 KiB
Plaintext
Vendored

<% /* Note: This is injected into `views/layouts/layout-email.ejs` */ %>
<h1 style="margin-bottom: 32px; font-weight: bold; font-size: 24px;">Renewal confirmation</h1>
<p style="margin-bottom: 32px;">Hello <%= firstName+' '+lastName %>,</p>
<p style="margin-bottom: 32px;">Thank you for renewing your subscription to Fleet Premium.</p>
<p style="margin-bottom: 32px;">You can access your new license at any time from your <a style="color: #6A67FE;" href="<%= url.resolve(sails.config.custom.baseUrl,'/customers/dashboard')%>">customer dashboard</a>. Please keep it safe and attach it to your Fleet Premium instance.</p>
<div style="margin-bottom: 32px; text-align: left;">
<div style="background: #6A67FE; display: inline-block; color: white; text-decoration: none; border-radius: 4px; text-align: center; padding: 8px 16px 8px 16px" >
<a style="color: #EEE; text-decoration: none;" href="<%= url.resolve(sails.config.custom.baseUrl,'/customers/dashboard') %>">Go to your customer dashboard</a>
</div>
</div>
<p style="margin-bottom: 32px;">As part of your subscription to Fleet Premium you are entitled to unlimited email support. To contact support, please email <a style="color: #6A67FE;" href="mailto:support@fleetdm.com">support@fleetdm.com</a>.</p>
<p style="margin-bottom: 32px;">If you have any other questions or concerns, please reply to this email or <a style="color: #6A67FE;" href="<%= url.resolve(sails.config.custom.baseUrl,'/contact') %>">contact us</a>.</p>
<p style="margin-bottom: 32px;">Thank you again for your purchase!</p>