diff --git a/util/useremails.py b/util/useremails.py index 74e98f429..ca0fd896a 100644 --- a/util/useremails.py +++ b/util/useremails.py @@ -146,6 +146,13 @@ def send_invoice_email(email, contents): def send_subscription_change(change_description, customer_id, customer_email, quay_username): SUBSCRIPTION_CHANGE_TITLE = 'Subscription Change - {0} {1}' + SUBSCRIPTION_CHANGE = """ + Change: {0}<br> + Customer id: <a href="https://manage.stripe.com/customers/{1}">{1}</a><br> + Customer email: <a href="mailto:{2}">{2}</a><br> + Quay user or org name: {3}<br> + """ + title = SUBSCRIPTION_CHANGE_TITLE.format(quay_username, change_description) msg = Message(title, sender='support@quay.io', recipients=['stripe@quay.io']) msg.html = SUBSCRIPTION_CHANGE.format(change_description, customer_id, customer_email,