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