From b9d0f28a7660a346fb9439fdccb94278d8cee31e Mon Sep 17 00:00:00 2001 From: Dita Aji Pratama Date: Thu, 7 Aug 2025 10:48:46 +0700 Subject: [PATCH] Webmail for accept invitation --- pages/email/accept.html | 6 ++++++ procedure/webmail.py | 15 +++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 pages/email/accept.html diff --git a/pages/email/accept.html b/pages/email/accept.html new file mode 100644 index 0000000..a31a321 --- /dev/null +++ b/pages/email/accept.html @@ -0,0 +1,6 @@ +

Accept Invitation

+ +

Please visit this link below to accept the invitation.

+ + Accept + diff --git a/procedure/webmail.py b/procedure/webmail.py index 429fe64..759f5d4 100644 --- a/procedure/webmail.py +++ b/procedure/webmail.py @@ -77,3 +77,18 @@ class webmail(): ) ) } + + def invitation(self, APIADDR, params, data): + return { + "subject" : f"{globalvar.title} invitation", + "text" : f"Please visit this link to accept the invitation: {data['accept']}", + "html" : Template(params["mako"]["email"]['index']).render( + title = globalvar.title, + header = globalvar.title, + copyright = globalvar.copyright, + container = Template(params["mako"]["email"]['container']).render( + header = "One more step to complete your invitation!", + accept = data['accept' ] + ) + ) + }