24 lines
927 B
Python
24 lines
927 B
Python
from mako.template import Template
|
|
from config import globalvar
|
|
|
|
class webmail():
|
|
|
|
def __init__(self):
|
|
pass
|
|
|
|
def verification(self, APIADDR, params, data):
|
|
return {
|
|
"subject" : f"{globalvar.title} email verification",
|
|
"text" : f"Please visit this link to complete the registration: {data['verify']} . You are not registering this? report on this: {data['notme']} .",
|
|
"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 registration!",
|
|
verify = data['verify' ],
|
|
notme = data['notme' ]
|
|
)
|
|
)
|
|
}
|