A minimal example showing how to use the Inky email framework from Python via the ctypes bindings.
Requires Inky v2. See installation instructions.
- Python >= 3.8
- The
libinkyshared library (build from source:cargo build -p inky-ffi --release)
pip install -r requirements.txt
python build.pysrc/emails/welcome.inky Source template
data/welcome.json Sample merge data
dist/ Built output (generated)
build.py Build script
send.py Email sending example
python build.py transforms the Inky template, generates a merged version with sample data, and creates a plain text version.
Edit send.py with your SMTP credentials, then:
python send.pyUses Python's built-in smtplib. See comments in send.py for ESP alternatives.