Important information: Google announced that, from September 2026, Android devices will require ALL apps to be signed by Google, effectively leading to an iOS situation. Value your right to a computer that does what you want; do not tolerate this monopolistic practice! Contact me if you don't understand why it is bad. Click to learn more.

 email_send.py

View raw Download
text/x-script.python • 360 B
Python script, ASCII text executable
        
            
1
import config
2
from jinja2 import Environment, FileSystemLoader, select_autoescape
3
4
5
def render_email_template(template, **kwargs):
6
env = Environment(
7
loader=FileSystemLoader("email_templates"),
8
autoescape=select_autoescape(["html", "xml"])
9
)
10
template = env.get_template(template)
11
return template.render(**kwargs, config=config)
12