diff --git a/common/static/images/auth/subscription_expire_soon.png b/common/static/images/auth/subscription_expire_soon.png new file mode 100644 index 0000000..5dccdf1 Binary files /dev/null and b/common/static/images/auth/subscription_expire_soon.png differ diff --git a/common/static/images/auth/subscription_expried.png b/common/static/images/auth/subscription_expried.png new file mode 100644 index 0000000..e8a1786 Binary files /dev/null and b/common/static/images/auth/subscription_expried.png differ diff --git a/common/templates/email_subscription_expired.html b/common/templates/email_subscription_expired.html new file mode 100644 index 0000000..992782b --- /dev/null +++ b/common/templates/email_subscription_expired.html @@ -0,0 +1,44 @@ +{% extends "base.html" %} {% block title %}Your SpaceDF subscription has expired{% endblock %} {% block content %} +
+ {% if header_image_url %} +
+ Subscription Expired +
+ {% endif %} +

+ Your SpaceDF subscription has expired +

+ +

+ Hi{% if user_name %} {{ user_name }}{% else %} there{% endif %}, +

+ +

+ Your {{ plan_name }} subscription for {{ organization_name }} expired + on {{ expiry_date }}. +

+ +

+ As a result, some premium features may no longer be available until your + subscription is renewed. +

+ +

+ To restore full access, please contact our team to renew your subscription. +

+ +

+ + Manage Subscription + +

+ +

Best regards,

+

{{ sender_from }}

+
+{% endblock %} diff --git a/common/templates/email_subscription_expiry_reminder.html b/common/templates/email_subscription_expiry_reminder.html new file mode 100644 index 0000000..72f4023 --- /dev/null +++ b/common/templates/email_subscription_expiry_reminder.html @@ -0,0 +1,39 @@ +{% extends "base.html" %} {% block title %}Your SpaceDF subscription will expire soon{% endblock %} {% block content %} +
+ {% if header_image_url %} +
+ Subscription Expiry Reminder +
+ {% endif %} + +

+ Your SpaceDF subscription will expire soon. +

+ +

+ Hi{% if user_name %} {{ user_name }}{% else %} there{% endif %}, +

+ +

+ We hope you're enjoying SpaceDF. +

+ +

+ This is a friendly reminder that your {{ plan_name }} subscription for + {{ organization_name }} will expire on {{ expiry_date }}. +

+ +

+ To avoid any interruption to your services and continue accessing your + premium features, please renew your subscription before the expiration date. +

+ +

+ If you would like to renew or have any questions about your subscription, + please contact our team. +

+ +

Best regards,

+

{{ sender_from }}

+
+{% endblock %} diff --git a/common/templates/email_subscription_request_received.html b/common/templates/email_subscription_request_received.html new file mode 100644 index 0000000..05d6344 --- /dev/null +++ b/common/templates/email_subscription_request_received.html @@ -0,0 +1,38 @@ +{% extends "base.html" %} {% block title %}Subscription Request Received{% endblock %} {% block content %} +
+ {% if header_image_url %} +
+ Subscription Request Received +
+ {% endif %} +

+ Your Subscription Request Has Been Received +

+ +

+ Hi{% if name %} {{ name }}{% else %} there{% endif %}, +

+ +

+ Thank you for your interest in subscribing to the {{ plan_name }} plan.
+ We've successfully received your subscription request. +

+ +

+ What happens next? +

+ + + +

Best regards,

+

{{ sender_from }}

+
+{% endblock %} diff --git a/common/utils/email_context.py b/common/utils/email_context.py index 4d6c208..b954d5f 100644 --- a/common/utils/email_context.py +++ b/common/utils/email_context.py @@ -89,7 +89,10 @@ def get_email_context(email_context_data, custom_email): _get_value(custom_email, "sender_email") or email_context_data.get("sender_email", "support@spacedf.com") ), - "email_footer": (_get_value(custom_email, "footer_text") or ""), + "email_footer": ( + _get_value(custom_email, "footer_text") + or "©2025 Digital Fortress. All rights reserved." + ), "header_image_url": _get_value(custom_email, "url_header_image") or email_context_data.get("header_image_url", ""), "linkedin_url": social_links.get("linkedin_url", ""),