Webmail for accept invitation

This commit is contained in:
Dita Aji Pratama 2025-08-07 10:48:46 +07:00
parent a6449c6962
commit b9d0f28a76
2 changed files with 21 additions and 0 deletions

6
pages/email/accept.html Normal file
View File

@ -0,0 +1,6 @@
<h2>Accept Invitation</h2>
<p>Please visit this link below to accept the invitation.</p>
<a href="${accept}" class="button">
Accept
</a>

View File

@ -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' ]
)
)
}